No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
a4195db
... +0 ...
0cc7edb
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
348 | 348 | private final LocalVarTypes localTypes = new LocalVarTypes(); |
|
349 | 349 | private final Set<Integer> frameOffsets = new HashSet<>(); |
|
350 | 350 | private final Map<Label, SavedState> jumpTargetStates = new HashMap<>(); |
|
351 | - | private final Map<Label, Label> tryCatchHandlerMap = new HashMap<>(); |
|
351 | + | private final Map<Label, Set<Label>> tryCatchHandlerMap = new HashMap<>(); |
|
352 | 352 | ||
353 | 353 | private int argsSize = 0; |
|
354 | 354 | private int localsTailPtr = 0; |
1205 | 1205 | newLocals.clear(); |
|
1206 | 1206 | newLocals.addAll(ss.newLocals); |
|
1207 | 1207 | } |
|
1208 | - | Label handler = tryCatchHandlerMap.get(label); |
|
1209 | - | if (handler != null) { |
|
1210 | - | if (!jumpTargetStates.containsKey(handler)) { |
|
1211 | - | jumpTargetStates.put(handler, new SavedState(variableMapper, localTypes, stack, newLocals, SavedState.EXCEPTION)); |
|
1208 | + | Set<Label> handlers = tryCatchHandlerMap.get(label); |
|
1209 | + | if (handlers != null) { |
|
1210 | + | for (Label handler:handlers){ |
|
1211 | + | if (!jumpTargetStates.containsKey(handler)) { |
|
1212 | + | jumpTargetStates.put(handler, new SavedState(variableMapper, localTypes, stack, newLocals, SavedState.EXCEPTION)); |
|
1213 | + | } |
|
1212 | 1214 | } |
|
1213 | 1215 | } |
|
1214 | 1216 | super.visitLabel(label); |
1284 | 1286 | ||
1285 | 1287 | @Override |
|
1286 | 1288 | public void addTryCatchHandler(Label start, Label handler) { |
|
1287 | - | tryCatchHandlerMap.put(start, handler); |
|
1289 | + | Set<Label> handlers = tryCatchHandlerMap.get(start); |
|
1290 | + | if (handlers == null){ |
|
1291 | + | handlers = new HashSet<>(); |
|
1292 | + | } |
|
1293 | + | handlers.add(handler); |
|
1294 | + | tryCatchHandlerMap.put(start,handlers); |
|
1288 | 1295 | } |
|
1289 | 1296 | ||
1290 | 1297 | @Override |
Files | Complexity | Coverage |
---|---|---|
src/share/classes/com/sun/btrace | +2.00% 23.80% | 0.03% 29.77% |
Project Totals (160 files) | 23.80% | 29.77% |
0cc7edb
a4195db