Skip to content

Commit fbb2004

Browse files
committedNov 6, 2024
Mark objects before analysis in mapAllLocals
Related: ibmruntimes/Semeru-Runtimes#93 Signed-off-by: Babneet Singh <[email protected]>
1 parent 1c95046 commit fbb2004

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎runtime/stackmap/localmap.c

+11
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@ mapAllLocals(J9PortLibrary * portLibrary, J9ROMMethod * romMethod, PARALLEL_TYPE
9393
PORT_ACCESS_FROM_PORT(portLibrary);
9494
#endif
9595

96+
/* Mark arguments that are objects as per the signature before analysis.
97+
* A side effect is zeroing out the result array.
98+
*/
99+
argBitsFromSignature(
100+
J9UTF8_DATA(J9ROMMETHOD_SIGNATURE(romMethod)),
101+
resultArrayBase,
102+
(remainingLocals + 31) >> 5,
103+
(romMethod->modifiers & J9AccStatic) != 0);
104+
105+
parallelResultArrayBase = (PARALLEL_TYPE *) resultArrayBase;
106+
96107
/* set up data to walk exceptions */
97108
if (J9ROMMETHOD_HAS_EXCEPTION_INFO(romMethod)) {
98109
exceptionData = J9_EXCEPTION_DATA_FROM_ROM_METHOD(romMethod);

0 commit comments

Comments
 (0)
Please sign in to comment.