mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8181171: Deleting method for RedefineClasses breaks ResolvedMethodName
8210457: JVM crash in ResolvedMethodTable::add_method(Handle) Add a function to call NSME in ResolvedMethodTable to replace deleted methods. Reviewed-by: sspitsyn, dholmes, dcubed
This commit is contained in:
parent
15ec4ba5c6
commit
2a83596e85
13 changed files with 368 additions and 18 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2019, 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
|
||||
|
@ -3114,7 +3114,7 @@ public final class Unsafe {
|
|||
* @param offset field/element offset
|
||||
* @param mask the mask value
|
||||
* @return the previous value
|
||||
* @since 1.9
|
||||
* @since 9
|
||||
*/
|
||||
@ForceInline
|
||||
public final int getAndBitwiseAndInt(Object o, long offset, int mask) {
|
||||
|
@ -3342,6 +3342,14 @@ public final class Unsafe {
|
|||
throw new IllegalAccessError();
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws NoSuchMethodError; for use by the VM for redefinition support.
|
||||
* @since 13
|
||||
*/
|
||||
private static void throwNoSuchMethodError() {
|
||||
throw new NoSuchMethodError();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns true if the native byte ordering of this
|
||||
* platform is big-endian, false if it is little-endian.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue