1
1
/*
2
- * Copyright (c) 1999, 2020 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 1999, 2021 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -640,7 +640,7 @@ address Runtime1::exception_handler_for_pc(JavaThread* thread) {
640
640
oop exception = thread->exception_oop ();
641
641
address pc = thread->exception_pc ();
642
642
// Still in Java mode
643
- DEBUG_ONLY (ResetNoHandleMark rnhm );
643
+ DEBUG_ONLY (NoHandleMark nhm );
644
644
nmethod* nm = NULL ;
645
645
address continuation = NULL ;
646
646
{
@@ -1307,7 +1307,6 @@ int Runtime1::move_klass_patching(JavaThread* thread) {
1307
1307
debug_only (NoHandleMark nhm;)
1308
1308
{
1309
1309
// Enter VM mode
1310
-
1311
1310
ResetNoHandleMark rnhm;
1312
1311
patch_code (thread, load_klass_patching_id);
1313
1312
}
@@ -1326,7 +1325,6 @@ int Runtime1::move_mirror_patching(JavaThread* thread) {
1326
1325
debug_only (NoHandleMark nhm;)
1327
1326
{
1328
1327
// Enter VM mode
1329
-
1330
1328
ResetNoHandleMark rnhm;
1331
1329
patch_code (thread, load_mirror_patching_id);
1332
1330
}
@@ -1345,7 +1343,6 @@ int Runtime1::move_appendix_patching(JavaThread* thread) {
1345
1343
debug_only (NoHandleMark nhm;)
1346
1344
{
1347
1345
// Enter VM mode
1348
-
1349
1346
ResetNoHandleMark rnhm;
1350
1347
patch_code (thread, load_appendix_patching_id);
1351
1348
}
@@ -1365,14 +1362,14 @@ int Runtime1::move_appendix_patching(JavaThread* thread) {
1365
1362
// assembly code in the cpu directories.
1366
1363
//
1367
1364
int Runtime1::access_field_patching (JavaThread* thread) {
1368
- //
1369
- // NOTE: we are still in Java
1370
- //
1371
- Thread* THREAD = thread;
1372
- debug_only (NoHandleMark nhm;)
1365
+ //
1366
+ // NOTE: we are still in Java
1367
+ //
1368
+ // Handles created in this function will be deleted by the
1369
+ // HandleMarkCleaner in the transition to the VM.
1370
+ NoHandleMark nhm;
1373
1371
{
1374
1372
// Enter VM mode
1375
-
1376
1373
ResetNoHandleMark rnhm;
1377
1374
patch_code (thread, access_field_patching_id);
1378
1375
}
0 commit comments