8269232: assert(!is_jweak(handle)) failed: wrong method for detroying jweak
Reviewed-by: rkennke, amenkov, sspitsyn, sgehwolf
This commit is contained in:
parent
b8a16e931b
commit
401cb0ad55
src/jdk.jdwp.agent/share/native/libjdwp
test/hotspot/jtreg/vmTestbase/nsk/jdwp/ObjectReference/EnableCollection
@ -205,7 +205,9 @@ weakenNode(JNIEnv *env, RefNode *node)
|
||||
}
|
||||
return weakRef;
|
||||
} else {
|
||||
node->strongCount--;
|
||||
if (node->strongCount > 0) {
|
||||
node->strongCount--;
|
||||
}
|
||||
return node->ref;
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -143,7 +143,11 @@ public class enablecol001 {
|
||||
disableObjectCollection(objectID);
|
||||
|
||||
// perform testing JDWP command
|
||||
log.display("\n>>> Testing JDWP command \n");
|
||||
log.display("\n>>> Testing JDWP EnableCollection command after JDWP DisableCollection\n");
|
||||
testCommand(objectID);
|
||||
|
||||
// perform testing JDWP command
|
||||
log.display("\n>>> Testing JDWP EnableCollection command with no JDWP DisableCollection\n");
|
||||
testCommand(objectID);
|
||||
|
||||
} finally {
|
||||
|
Loading…
x
Reference in New Issue
Block a user