1 /* |
1 /* |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
166 do_klass(StackTraceElement_klass, java_lang_StackTraceElement, Opt ) \ |
166 do_klass(StackTraceElement_klass, java_lang_StackTraceElement, Opt ) \ |
167 /* Universe::is_gte_jdk14x_version() is not set up by this point. */ \ |
167 /* Universe::is_gte_jdk14x_version() is not set up by this point. */ \ |
168 /* It's okay if this turns out to be NULL in non-1.4 JDKs. */ \ |
168 /* It's okay if this turns out to be NULL in non-1.4 JDKs. */ \ |
169 do_klass(nio_Buffer_klass, java_nio_Buffer, Opt ) \ |
169 do_klass(nio_Buffer_klass, java_nio_Buffer, Opt ) \ |
170 \ |
170 \ |
171 do_klass(DownloadManager_klass, sun_jkernel_DownloadManager, Opt_Kernel ) \ |
|
172 \ |
|
173 do_klass(PostVMInitHook_klass, sun_misc_PostVMInitHook, Opt ) \ |
171 do_klass(PostVMInitHook_klass, sun_misc_PostVMInitHook, Opt ) \ |
174 \ |
172 \ |
175 /* Preload boxing klasses */ \ |
173 /* Preload boxing klasses */ \ |
176 do_klass(Boolean_klass, java_lang_Boolean, Pre ) \ |
174 do_klass(Boolean_klass, java_lang_Boolean, Pre ) \ |
177 do_klass(Character_klass, java_lang_Character, Pre ) \ |
175 do_klass(Character_klass, java_lang_Character, Pre ) \ |
209 // Options after this point will use resolve_or_null instead. |
207 // Options after this point will use resolve_or_null instead. |
210 |
208 |
211 Opt, // preload tried; NULL if not present |
209 Opt, // preload tried; NULL if not present |
212 Opt_Only_JDK14NewRef, // preload tried; use only with NewReflection |
210 Opt_Only_JDK14NewRef, // preload tried; use only with NewReflection |
213 Opt_Only_JDK15, // preload tried; use only with JDK1.5+ |
211 Opt_Only_JDK15, // preload tried; use only with JDK1.5+ |
214 Opt_Kernel, // preload tried only #ifdef KERNEL |
|
215 OPTION_LIMIT, |
212 OPTION_LIMIT, |
216 CEIL_LG_OPTION_LIMIT = 4 // OPTION_LIMIT <= (1<<CEIL_LG_OPTION_LIMIT) |
213 CEIL_LG_OPTION_LIMIT = 4 // OPTION_LIMIT <= (1<<CEIL_LG_OPTION_LIMIT) |
217 }; |
214 }; |
218 |
215 |
219 |
216 |
392 } |
389 } |
393 |
390 |
394 static Klass* check_klass_Pre( Klass* k) { return check_klass(k); } |
391 static Klass* check_klass_Pre( Klass* k) { return check_klass(k); } |
395 static Klass* check_klass_Pre_JSR292(Klass* k) { return EnableInvokeDynamic ? check_klass(k) : k; } |
392 static Klass* check_klass_Pre_JSR292(Klass* k) { return EnableInvokeDynamic ? check_klass(k) : k; } |
396 static Klass* check_klass_Opt( Klass* k) { return k; } |
393 static Klass* check_klass_Opt( Klass* k) { return k; } |
397 static Klass* check_klass_Opt_Kernel(Klass* k) { return k; } //== Opt |
|
398 static Klass* check_klass_Opt_Only_JDK15(Klass* k) { |
394 static Klass* check_klass_Opt_Only_JDK15(Klass* k) { |
399 assert(JDK_Version::is_gte_jdk15x_version(), "JDK 1.5 only"); |
395 assert(JDK_Version::is_gte_jdk15x_version(), "JDK 1.5 only"); |
400 return k; |
396 return k; |
401 } |
397 } |
402 static Klass* check_klass_Opt_Only_JDK14NewRef(Klass* k) { |
398 static Klass* check_klass_Opt_Only_JDK14NewRef(Klass* k) { |