/** * implement the visitor to reset the sync count, the stack, and gather some information * * @param obj * the context object for the currently parsed method */ @Override public void visitCode(Code obj) { Method m = getMethod(); if (prescreen(m)) { if (m.isSynchronized()) { syncPC = 0; } else { syncPC = -1; } isStatic = m.isStatic(); unsafeAliases.clear(); unsafeAliases.set(0); branchInfo.clear(); unsafeCallOccurred = false; stack.resetForMethodEntry(this); } }
/** * implement the visitor to reset the sync count, the stack, and gather some information * * @param obj * the context object for the currently parsed method */ @Override public void visitCode(Code obj) { Method m = getMethod(); if (prescreen(m)) { if (m.isSynchronized()) { syncPC = 0; } else { syncPC = -1; } isStatic = m.isStatic(); unsafeAliases.clear(); unsafeAliases.set(0); branchInfo.clear(); unsafeCallOccurred = false; stack.resetForMethodEntry(this); } }