Showing 1 of 1 files from the diff.
@@ -348,7 +348,7 @@
Loading
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,10 +1205,12 @@
Loading
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,7 +1286,12 @@
Loading
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 | 23.80% | 29.77% |
Project Totals (160 files) | 23.80% | 29.77% |
603.1
TRAVIS_JDK_VERSION=oraclejdk8 TRAVIS_OS_NAME=linux
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.