src/java.base/share/classes/sun/misc/JavaLangAccess.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/java.base/share/classes/sun/misc/JavaLangAccess.java	Thu Oct 30 16:11:48 2014
--- new/src/java.base/share/classes/sun/misc/JavaLangAccess.java	Thu Oct 30 16:11:48 2014

*** 1,7 **** --- 1,7 ---- /* ! * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 2003, 2014, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 140,145 **** --- 140,163 ---- /** * Invokes Integer.formatUnsignedInt(long val, int shift, char[] buf, int offset, int len) */ void formatUnsignedInt(int val, int shift, char[] buf, int offset, int len); + + /** + * Intern memberName in klass's memberNameTable, guarding against concurrent + * redefinition of klass. + * + * @param <E> + * @param klass + * @param memberName + * @param redefined_count + * @return interned member name or null if a race is lost. + */ + <E extends Comparable<? super E>> E internMemberName(Class<?> klass, E memberName, int redefined_count); + + /** + * @param klass Class whose redefinition count is queried. + * @return redefinition count for klass + */ + int getClassRedefinedCount(Class<?> klass); }

src/java.base/share/classes/sun/misc/JavaLangAccess.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File