1 /*
   2  * Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #ifndef _JAVASOFT_JVM_H_
  27 #define _JAVASOFT_JVM_H_
  28 
  29 #include <sys/stat.h>
  30 
  31 #include "jni.h"
  32 #include "jvm_md.h"
  33 #include "jvm_constants.h"
  34 #include "jvm_io.h"
  35 
  36 #ifdef __cplusplus
  37 extern "C" {
  38 #endif
  39 
  40 /*
  41  * This file contains additional functions exported from the VM.
  42  * These functions are complementary to the standard JNI support.
  43  * There are three parts to this file:
  44  *
  45  * First, this file contains the VM-related functions needed by native
  46  * libraries in the standard Java API. For example, the java.lang.Object
  47  * class needs VM-level functions that wait for and notify monitors.
  48  *
  49  * Second, (included from jvm_constants.h) constant definitions
  50  * needed by the byte code verifier and class file format checker.
  51  * These definitions allow the verifier and format checker to be written
  52  * in a VM-independent way.
  53  *
  54  * Third, this file contains various I/O and network operations needed
  55  * by the standard Java I/O and network APIs. A part of these APIs,
  56  * namely the jio_xxxprintf functions, are included from jvm_io.h.
  57  */
  58 
  59 
  60 /*************************************************************************
  61  PART 1: Functions for Native Libraries
  62  ************************************************************************/
  63 /*
  64  * java.lang.Object
  65  */
  66 JNIEXPORT jint JNICALL
  67 JVM_IHashCode(JNIEnv *env, jobject obj);
  68 
  69 JNIEXPORT void JNICALL
  70 JVM_MonitorWait(JNIEnv *env, jobject obj, jlong ms);
  71 
  72 JNIEXPORT void JNICALL
  73 JVM_MonitorNotify(JNIEnv *env, jobject obj);
  74 
  75 JNIEXPORT void JNICALL
  76 JVM_MonitorNotifyAll(JNIEnv *env, jobject obj);
  77 
  78 JNIEXPORT jobject JNICALL
  79 JVM_Clone(JNIEnv *env, jobject obj);
  80 
  81 /*
  82  * java.lang.String
  83  */
  84 JNIEXPORT jstring JNICALL
  85 JVM_InternString(JNIEnv *env, jstring str);
  86 
  87 /*
  88  * java.lang.System
  89  */
  90 JNIEXPORT jlong JNICALL
  91 JVM_CurrentTimeMillis(JNIEnv *env, jclass ignored);
  92 
  93 JNIEXPORT jlong JNICALL
  94 JVM_NanoTime(JNIEnv *env, jclass ignored);
  95 
  96 JNIEXPORT jlong JNICALL
  97 JVM_GetNanoTimeAdjustment(JNIEnv *env, jclass ignored, jlong offset_secs);
  98 
  99 JNIEXPORT void JNICALL
 100 JVM_ArrayCopy(JNIEnv *env, jclass ignored, jobject src, jint src_pos,
 101               jobject dst, jint dst_pos, jint length);
 102 
 103 /*
 104  * Return an array of all properties as alternating name and value pairs.
 105  */
 106 JNIEXPORT jobjectArray JNICALL
 107 JVM_GetProperties(JNIEnv *env);
 108 
 109 /*
 110  * java.lang.Runtime
 111  */
 112 JNIEXPORT void JNICALL
 113 JVM_BeforeHalt();
 114 
 115 JNIEXPORT void JNICALL
 116 JVM_Halt(jint code);
 117 
 118 JNIEXPORT void JNICALL
 119 JVM_GC(void);
 120 
 121 /* Returns the number of real-time milliseconds that have elapsed since the
 122  * least-recently-inspected heap object was last inspected by the garbage
 123  * collector.
 124  *
 125  * For simple stop-the-world collectors this value is just the time
 126  * since the most recent collection.  For generational collectors it is the
 127  * time since the oldest generation was most recently collected.  Other
 128  * collectors are free to return a pessimistic estimate of the elapsed time, or
 129  * simply the time since the last full collection was performed.
 130  *
 131  * Note that in the presence of reference objects, a given object that is no
 132  * longer strongly reachable may have to be inspected multiple times before it
 133  * can be reclaimed.
 134  */
 135 JNIEXPORT jlong JNICALL
 136 JVM_MaxObjectInspectionAge(void);
 137 
 138 JNIEXPORT jlong JNICALL
 139 JVM_TotalMemory(void);
 140 
 141 JNIEXPORT jlong JNICALL
 142 JVM_FreeMemory(void);
 143 
 144 JNIEXPORT jlong JNICALL
 145 JVM_MaxMemory(void);
 146 
 147 JNIEXPORT jint JNICALL
 148 JVM_ActiveProcessorCount(void);
 149 
 150 JNIEXPORT jboolean JNICALL
 151 JVM_IsUseContainerSupport(void);
 152 
 153 JNIEXPORT void * JNICALL
 154 JVM_LoadZipLibrary();
 155 
 156 JNIEXPORT void * JNICALL
 157 JVM_LoadLibrary(const char *name, jboolean throwException);
 158 
 159 JNIEXPORT void JNICALL
 160 JVM_UnloadLibrary(void * handle);
 161 
 162 JNIEXPORT void * JNICALL
 163 JVM_FindLibraryEntry(void *handle, const char *name);
 164 
 165 JNIEXPORT jboolean JNICALL
 166 JVM_IsSupportedJNIVersion(jint version);
 167 
 168 JNIEXPORT jobjectArray JNICALL
 169 JVM_GetVmArguments(JNIEnv *env);
 170 
 171 JNIEXPORT jboolean JNICALL
 172 JVM_IsPreviewEnabled(void);
 173 
 174 JNIEXPORT jboolean JNICALL
 175 JVM_IsContinuationsSupported(void);
 176 
 177 JNIEXPORT jboolean JNICALL
 178 JVM_IsForeignLinkerSupported(void);
 179 
 180 JNIEXPORT void JNICALL
 181 JVM_InitializeFromArchive(JNIEnv* env, jclass cls);
 182 
 183 JNIEXPORT void JNICALL
 184 JVM_RegisterLambdaProxyClassForArchiving(JNIEnv* env, jclass caller,
 185                                          jstring interfaceMethodName,
 186                                          jobject factoryType,
 187                                          jobject interfaceMethodType,
 188                                          jobject implementationMember,
 189                                          jobject dynamicMethodType,
 190                                          jclass lambdaProxyClass);
 191 
 192 JNIEXPORT jclass JNICALL
 193 JVM_LookupLambdaProxyClassFromArchive(JNIEnv* env, jclass caller,
 194                                       jstring interfaceMethodName,
 195                                       jobject factoryType,
 196                                       jobject interfaceMethodType,
 197                                       jobject implementationMember,
 198                                       jobject dynamicMethodType);
 199 
 200 JNIEXPORT jboolean JNICALL
 201 JVM_IsDumpingArchive(JNIEnv* env);
 202 
 203 JNIEXPORT jboolean JNICALL
 204 JVM_IsDumpingStaticArchive(JNIEnv* env);
 205 
 206 JNIEXPORT jboolean JNICALL
 207 JVM_IsDumpingHeap(JNIEnv* env);
 208 
 209 JNIEXPORT jboolean JNICALL
 210 JVM_IsTracingDynamicProxy(JNIEnv* env);
 211 
 212 JNIEXPORT jboolean JNICALL
 213 JVM_IsSharingEnabled(JNIEnv* env);
 214 
 215 JNIEXPORT jboolean JNICALL
 216 JVM_IsDumpingClassList(JNIEnv* env);
 217 
 218 JNIEXPORT jlong JNICALL
 219 JVM_GetRandomSeedForDumping();
 220 
 221 JNIEXPORT void JNICALL
 222 JVM_LogLambdaFormInvoker(JNIEnv* env, jstring line);
 223 
 224 JNIEXPORT void JNICALL
 225 JVM_LogDynamicProxy(JNIEnv *env, jobject loader, jstring proxy_name, jobjectArray interfaces, jint accessFlags);
 226 
 227 JNIEXPORT void JNICALL
 228 JVM_DumpClassListToFile(JNIEnv* env, jstring fileName);
 229 
 230 JNIEXPORT void JNICALL
 231 JVM_DumpDynamicArchive(JNIEnv* env, jstring archiveName);
 232 
 233 /*
 234  * java.lang.Throwable
 235  */
 236 JNIEXPORT void JNICALL
 237 JVM_FillInStackTrace(JNIEnv *env, jobject throwable);
 238 
 239 /*
 240  * java.lang.StackTraceElement
 241  */
 242 JNIEXPORT void JNICALL
 243 JVM_InitStackTraceElementArray(JNIEnv *env, jobjectArray elements, jobject backtrace, jint depth);
 244 
 245 JNIEXPORT void JNICALL
 246 JVM_InitStackTraceElement(JNIEnv* env, jobject element, jobject stackFrameInfo);
 247 
 248 /*
 249  * java.lang.NullPointerException
 250  */
 251 
 252 JNIEXPORT jstring JNICALL
 253 JVM_GetExtendedNPEMessage(JNIEnv *env, jthrowable throwable);
 254 
 255 /*
 256  * java.lang.StackWalker
 257  */
 258 enum {
 259   JVM_STACKWALK_CLASS_INFO_ONLY            = 0x2,
 260   JVM_STACKWALK_SHOW_HIDDEN_FRAMES         = 0x20,
 261   JVM_STACKWALK_FILL_LIVE_STACK_FRAMES     = 0x100
 262 };
 263 
 264 JNIEXPORT void JNICALL
 265 JVM_ExpandStackFrameInfo(JNIEnv *env, jobject obj);
 266 
 267 JNIEXPORT jobject JNICALL
 268 JVM_CallStackWalk(JNIEnv *env, jobject stackStream, jint mode,
 269                   jint skip_frames, jobject contScope, jobject cont,
 270                   jint buffer_size, jint start_index, jobjectArray frames);
 271 
 272 JNIEXPORT jint JNICALL
 273 JVM_MoreStackWalk(JNIEnv *env, jobject stackStream, jint mode, jlong anchor,
 274                   jint last_batch_count, jint buffer_size, jint start_index,
 275                   jobjectArray frames);
 276 
 277 JNIEXPORT void JNICALL
 278 JVM_SetStackWalkContinuation(JNIEnv *env, jobject stackStream, jlong anchor, jobjectArray frames, jobject cont);
 279 
 280 /*
 281  * java.lang.Thread
 282  */
 283 JNIEXPORT void JNICALL
 284 JVM_StartThread(JNIEnv *env, jobject thread);
 285 
 286 JNIEXPORT void JNICALL
 287 JVM_SetThreadPriority(JNIEnv *env, jobject thread, jint prio);
 288 
 289 JNIEXPORT void JNICALL
 290 JVM_Yield(JNIEnv *env, jclass threadClass);
 291 
 292 JNIEXPORT void JNICALL
 293 JVM_SleepNanos(JNIEnv *env, jclass threadClass, jlong nanos);
 294 
 295 JNIEXPORT jobject JNICALL
 296 JVM_CurrentCarrierThread(JNIEnv *env, jclass threadClass);
 297 
 298 JNIEXPORT jobject JNICALL
 299 JVM_CurrentThread(JNIEnv *env, jclass threadClass);
 300 
 301 JNIEXPORT void JNICALL
 302 JVM_SetCurrentThread(JNIEnv *env, jobject thisThread, jobject theThread);
 303 
 304 JNIEXPORT void JNICALL
 305 JVM_Interrupt(JNIEnv *env, jobject thread);
 306 
 307 JNIEXPORT jboolean JNICALL
 308 JVM_HoldsLock(JNIEnv *env, jclass threadClass, jobject obj);
 309 
 310 JNIEXPORT jobject JNICALL
 311 JVM_GetStackTrace(JNIEnv *env, jobject thread);
 312 
 313 JNIEXPORT void JNICALL
 314 JVM_DumpAllStacks(JNIEnv *env, jclass unused);
 315 
 316 JNIEXPORT jobjectArray JNICALL
 317 JVM_GetAllThreads(JNIEnv *env, jclass dummy);
 318 
 319 JNIEXPORT void JNICALL
 320 JVM_SetNativeThreadName(JNIEnv *env, jobject jthread, jstring name);
 321 
 322 /* getStackTrace() and getAllStackTraces() method */
 323 JNIEXPORT jobjectArray JNICALL
 324 JVM_DumpThreads(JNIEnv *env, jclass threadClass, jobjectArray threads);
 325 
 326 JNIEXPORT jobject JNICALL
 327 JVM_ScopedValueCache(JNIEnv *env, jclass threadClass);
 328 
 329 JNIEXPORT void JNICALL
 330 JVM_SetScopedValueCache(JNIEnv *env, jclass threadClass, jobject theCache);
 331 
 332 JNIEXPORT jobject JNICALL
 333 JVM_FindScopedValueBindings(JNIEnv *env, jclass threadClass);
 334 
 335 JNIEXPORT jlong JNICALL
 336 JVM_GetNextThreadIdOffset(JNIEnv *env, jclass threadClass);
 337 
 338 /*
 339  * jdk.internal.vm.Continuation
 340  */
 341 JNIEXPORT void JNICALL
 342 JVM_RegisterContinuationMethods(JNIEnv *env, jclass cls);
 343 
 344 /*
 345  * java.lang.SecurityManager
 346  */
 347 JNIEXPORT jobjectArray JNICALL
 348 JVM_GetClassContext(JNIEnv *env);
 349 
 350 /*
 351  * java.lang.Package
 352  */
 353 JNIEXPORT jstring JNICALL
 354 JVM_GetSystemPackage(JNIEnv *env, jstring name);
 355 
 356 JNIEXPORT jobjectArray JNICALL
 357 JVM_GetSystemPackages(JNIEnv *env);
 358 
 359 /*
 360  * java.lang.ref.Reference
 361  */
 362 JNIEXPORT jobject JNICALL
 363 JVM_GetAndClearReferencePendingList(JNIEnv *env);
 364 
 365 JNIEXPORT jboolean JNICALL
 366 JVM_HasReferencePendingList(JNIEnv *env);
 367 
 368 JNIEXPORT void JNICALL
 369 JVM_WaitForReferencePendingList(JNIEnv *env);
 370 
 371 JNIEXPORT jboolean JNICALL
 372 JVM_ReferenceRefersTo(JNIEnv *env, jobject ref, jobject o);
 373 
 374 JNIEXPORT void JNICALL
 375 JVM_ReferenceClear(JNIEnv *env, jobject ref);
 376 
 377 /*
 378  * java.lang.ref.PhantomReference
 379  */
 380 JNIEXPORT jboolean JNICALL
 381 JVM_PhantomReferenceRefersTo(JNIEnv *env, jobject ref, jobject o);
 382 
 383 /*
 384  * java.io.ObjectInputStream
 385  */
 386 JNIEXPORT jobject JNICALL
 387 JVM_LatestUserDefinedLoader(JNIEnv *env);
 388 
 389 /*
 390  * java.lang.reflect.Array
 391  */
 392 JNIEXPORT jint JNICALL
 393 JVM_GetArrayLength(JNIEnv *env, jobject arr);
 394 
 395 JNIEXPORT jobject JNICALL
 396 JVM_GetArrayElement(JNIEnv *env, jobject arr, jint index);
 397 
 398 JNIEXPORT jvalue JNICALL
 399 JVM_GetPrimitiveArrayElement(JNIEnv *env, jobject arr, jint index, jint wCode);
 400 
 401 JNIEXPORT void JNICALL
 402 JVM_SetArrayElement(JNIEnv *env, jobject arr, jint index, jobject val);
 403 
 404 JNIEXPORT void JNICALL
 405 JVM_SetPrimitiveArrayElement(JNIEnv *env, jobject arr, jint index, jvalue v,
 406                              unsigned char vCode);
 407 
 408 JNIEXPORT jobject JNICALL
 409 JVM_NewArray(JNIEnv *env, jclass eltClass, jint length);
 410 
 411 JNIEXPORT jobject JNICALL
 412 JVM_NewMultiArray(JNIEnv *env, jclass eltClass, jintArray dim);
 413 
 414 
 415 /*
 416  * Returns the immediate caller class of the native method invoking
 417  * JVM_GetCallerClass.  The Method.invoke and other frames due to
 418  * reflection machinery are skipped.
 419  *
 420  * The caller is expected to be marked with
 421  * jdk.internal.reflect.CallerSensitive. The JVM will throw an
 422  * error if it is not marked properly.
 423  */
 424 JNIEXPORT jclass JNICALL
 425 JVM_GetCallerClass(JNIEnv *env);
 426 
 427 
 428 /*
 429  * Find primitive classes
 430  * utf: class name
 431  */
 432 JNIEXPORT jclass JNICALL
 433 JVM_FindPrimitiveClass(JNIEnv *env, const char *utf);
 434 
 435 
 436 /*
 437  * Find a class from a boot class loader. Returns NULL if class not found.
 438  */
 439 JNIEXPORT jclass JNICALL
 440 JVM_FindClassFromBootLoader(JNIEnv *env, const char *name);
 441 
 442 /*
 443  * Find a class from a given class loader.  Throws ClassNotFoundException.
 444  *  name:   name of class
 445  *  init:   whether initialization is done
 446  *  loader: class loader to look up the class. This may not be the same as the caller's
 447  *          class loader.
 448  *  caller: initiating class. The initiating class may be null when a security
 449  *          manager is not installed.
 450  */
 451 JNIEXPORT jclass JNICALL
 452 JVM_FindClassFromCaller(JNIEnv *env, const char *name, jboolean init,
 453                         jobject loader, jclass caller);
 454 
 455 /*
 456  * Find a class from a given class.
 457  */
 458 JNIEXPORT jclass JNICALL
 459 JVM_FindClassFromClass(JNIEnv *env, const char *name, jboolean init,
 460                              jclass from);
 461 
 462 /* Find a loaded class cached by the VM */
 463 JNIEXPORT jclass JNICALL
 464 JVM_FindLoadedClass(JNIEnv *env, jobject loader, jstring name);
 465 
 466 /* Define a class */
 467 JNIEXPORT jclass JNICALL
 468 JVM_DefineClass(JNIEnv *env, const char *name, jobject loader, const jbyte *buf,
 469                 jsize len, jobject pd);
 470 
 471 /* Define a class with a source (added in JDK1.5) */
 472 JNIEXPORT jclass JNICALL
 473 JVM_DefineClassWithSource(JNIEnv *env, const char *name, jobject loader,
 474                           const jbyte *buf, jsize len, jobject pd,
 475                           const char *source);
 476 
 477 /*
 478  * Define a class with the specified lookup class.
 479  *  lookup:  Lookup class
 480  *  name:    the name of the class
 481  *  buf:     class bytes
 482  *  len:     length of class bytes
 483  *  pd:      protection domain
 484  *  init:    initialize the class
 485  *  flags:   properties of the class
 486  *  classData: private static pre-initialized field; may be null
 487  */
 488 JNIEXPORT jclass JNICALL
 489 JVM_LookupDefineClass(JNIEnv *env, jclass lookup, const char *name, const jbyte *buf,
 490                       jsize len, jobject pd, jboolean init, int flags, jobject classData);
 491 
 492 /*
 493  * Module support functions
 494  */
 495 
 496 /*
 497  * Define a module with the specified packages and bind the module to the
 498  * given class loader.
 499  *  module:       module to define
 500  *  is_open:      specifies if module is open (currently ignored)
 501  *  version:      the module version
 502  *  location:     the module location
 503  *  packages:     array of packages in the module
 504  */
 505 JNIEXPORT void JNICALL
 506 JVM_DefineModule(JNIEnv *env, jobject module, jboolean is_open, jstring version,
 507                  jstring location, jobjectArray packages);
 508 
 509 /*
 510  * Set the boot loader's unnamed module.
 511  *  module: boot loader's unnamed module
 512  */
 513 JNIEXPORT void JNICALL
 514 JVM_SetBootLoaderUnnamedModule(JNIEnv *env, jobject module);
 515 
 516 /*
 517  * Do a qualified export of a package.
 518  *  from_module: module containing the package to export
 519  *  package:     name of the package to export
 520  *  to_module:   module to export the package to
 521  */
 522 JNIEXPORT void JNICALL
 523 JVM_AddModuleExports(JNIEnv *env, jobject from_module, jstring package, jobject to_module);
 524 
 525 /*
 526  * Do an export of a package to all unnamed modules.
 527  *  from_module: module containing the package to export
 528  *  package:     name of the package to export to all unnamed modules
 529  */
 530 JNIEXPORT void JNICALL
 531 JVM_AddModuleExportsToAllUnnamed(JNIEnv *env, jobject from_module, jstring package);
 532 
 533 /*
 534  * Do an unqualified export of a package.
 535  *  from_module: module containing the package to export
 536  *  package:     name of the package to export
 537  */
 538 JNIEXPORT void JNICALL
 539 JVM_AddModuleExportsToAll(JNIEnv *env, jobject from_module, jstring package);
 540 
 541 /*
 542  * Add a module to the list of modules that a given module can read.
 543  *  from_module:   module requesting read access
 544  *  source_module: module that from_module wants to read
 545  */
 546 JNIEXPORT void JNICALL
 547 JVM_AddReadsModule(JNIEnv *env, jobject from_module, jobject source_module);
 548 
 549 /*
 550  * Define all modules that have been stored in the CDS archived heap.
 551  *  platform_loader: the built-in platform class loader
 552  *  system_loader:   the built-in system class loader
 553  */
 554 JNIEXPORT void JNICALL
 555 JVM_DefineArchivedModules(JNIEnv *env, jobject platform_loader, jobject system_loader);
 556 
 557 /*
 558  * Reflection support functions
 559  */
 560 
 561 JNIEXPORT jstring JNICALL
 562 JVM_InitClassName(JNIEnv *env, jclass cls);
 563 
 564 JNIEXPORT jobjectArray JNICALL
 565 JVM_GetClassInterfaces(JNIEnv *env, jclass cls);
 566 
 567 JNIEXPORT jboolean JNICALL
 568 JVM_IsInterface(JNIEnv *env, jclass cls);
 569 
 570 JNIEXPORT jobjectArray JNICALL
 571 JVM_GetClassSigners(JNIEnv *env, jclass cls);
 572 
 573 JNIEXPORT void JNICALL
 574 JVM_SetClassSigners(JNIEnv *env, jclass cls, jobjectArray signers);
 575 
 576 JNIEXPORT jobject JNICALL
 577 JVM_GetProtectionDomain(JNIEnv *env, jclass cls);
 578 
 579 JNIEXPORT jboolean JNICALL
 580 JVM_IsArrayClass(JNIEnv *env, jclass cls);
 581 
 582 JNIEXPORT jboolean JNICALL
 583 JVM_IsPrimitiveClass(JNIEnv *env, jclass cls);
 584 
 585 JNIEXPORT jboolean JNICALL
 586 JVM_IsHiddenClass(JNIEnv *env, jclass cls);
 587 
 588 JNIEXPORT jint JNICALL
 589 JVM_GetClassModifiers(JNIEnv *env, jclass cls);
 590 
 591 JNIEXPORT jobjectArray JNICALL
 592 JVM_GetDeclaredClasses(JNIEnv *env, jclass ofClass);
 593 
 594 JNIEXPORT jclass JNICALL
 595 JVM_GetDeclaringClass(JNIEnv *env, jclass ofClass);
 596 
 597 JNIEXPORT jstring JNICALL
 598 JVM_GetSimpleBinaryName(JNIEnv *env, jclass ofClass);
 599 
 600 /* Generics support (JDK 1.5) */
 601 JNIEXPORT jstring JNICALL
 602 JVM_GetClassSignature(JNIEnv *env, jclass cls);
 603 
 604 /* Annotations support (JDK 1.5) */
 605 JNIEXPORT jbyteArray JNICALL
 606 JVM_GetClassAnnotations(JNIEnv *env, jclass cls);
 607 
 608 /* Type use annotations support (JDK 1.8) */
 609 
 610 JNIEXPORT jbyteArray JNICALL
 611 JVM_GetClassTypeAnnotations(JNIEnv *env, jclass cls);
 612 
 613 JNIEXPORT jbyteArray JNICALL
 614 JVM_GetFieldTypeAnnotations(JNIEnv *env, jobject field);
 615 
 616 JNIEXPORT jbyteArray JNICALL
 617 JVM_GetMethodTypeAnnotations(JNIEnv *env, jobject method);
 618 
 619 /*
 620  * New (JDK 1.4) reflection implementation
 621  */
 622 
 623 JNIEXPORT jobjectArray JNICALL
 624 JVM_GetClassDeclaredMethods(JNIEnv *env, jclass ofClass, jboolean publicOnly);
 625 
 626 JNIEXPORT jobjectArray JNICALL
 627 JVM_GetClassDeclaredFields(JNIEnv *env, jclass ofClass, jboolean publicOnly);
 628 
 629 JNIEXPORT jobjectArray JNICALL
 630 JVM_GetClassDeclaredConstructors(JNIEnv *env, jclass ofClass, jboolean publicOnly);
 631 
 632 
 633 /* Differs from JVM_GetClassModifiers in treatment of inner classes.
 634    This returns the access flags for the class as specified in the
 635    class file rather than searching the InnerClasses attribute (if
 636    present) to find the source-level access flags. Only the values of
 637    the low 13 bits (i.e., a mask of 0x1FFF) are guaranteed to be
 638    valid. */
 639 JNIEXPORT jint JNICALL
 640 JVM_GetClassAccessFlags(JNIEnv *env, jclass cls);
 641 
 642 /* Nestmates - since JDK 11 */
 643 
 644 JNIEXPORT jboolean JNICALL
 645 JVM_AreNestMates(JNIEnv *env, jclass current, jclass member);
 646 
 647 JNIEXPORT jclass JNICALL
 648 JVM_GetNestHost(JNIEnv *env, jclass current);
 649 
 650 JNIEXPORT jobjectArray JNICALL
 651 JVM_GetNestMembers(JNIEnv *env, jclass current);
 652 
 653 /* Records - since JDK 16 */
 654 
 655 JNIEXPORT jboolean JNICALL
 656 JVM_IsRecord(JNIEnv *env, jclass cls);
 657 
 658 JNIEXPORT jobjectArray JNICALL
 659 JVM_GetRecordComponents(JNIEnv *env, jclass ofClass);
 660 
 661 /* Sealed classes - since JDK 17 */
 662 
 663 JNIEXPORT jobjectArray JNICALL
 664 JVM_GetPermittedSubclasses(JNIEnv *env, jclass current);
 665 
 666 /* The following two reflection routines are still needed due to startup time issues */
 667 /*
 668  * java.lang.reflect.Method
 669  */
 670 JNIEXPORT jobject JNICALL
 671 JVM_InvokeMethod(JNIEnv *env, jobject method, jobject obj, jobjectArray args0);
 672 
 673 /*
 674  * java.lang.reflect.Constructor
 675  */
 676 JNIEXPORT jobject JNICALL
 677 JVM_NewInstanceFromConstructor(JNIEnv *env, jobject c, jobjectArray args0);
 678 
 679 /*
 680  * Constant pool access; currently used to implement reflective access to annotations (JDK 1.5)
 681  */
 682 
 683 JNIEXPORT jobject JNICALL
 684 JVM_GetClassConstantPool(JNIEnv *env, jclass cls);
 685 
 686 JNIEXPORT jint JNICALL JVM_ConstantPoolGetSize
 687 (JNIEnv *env, jobject unused, jobject jcpool);
 688 
 689 JNIEXPORT jclass JNICALL JVM_ConstantPoolGetClassAt
 690 (JNIEnv *env, jobject unused, jobject jcpool, jint index);
 691 
 692 JNIEXPORT jclass JNICALL JVM_ConstantPoolGetClassAtIfLoaded
 693 (JNIEnv *env, jobject unused, jobject jcpool, jint index);
 694 
 695 JNIEXPORT jint JNICALL JVM_ConstantPoolGetClassRefIndexAt
 696 (JNIEnv *env, jobject obj, jobject unused, jint index);
 697 
 698 JNIEXPORT jobject JNICALL JVM_ConstantPoolGetMethodAt
 699 (JNIEnv *env, jobject unused, jobject jcpool, jint index);
 700 
 701 JNIEXPORT jobject JNICALL JVM_ConstantPoolGetMethodAtIfLoaded
 702 (JNIEnv *env, jobject unused, jobject jcpool, jint index);
 703 
 704 JNIEXPORT jobject JNICALL JVM_ConstantPoolGetFieldAt
 705 (JNIEnv *env, jobject unused, jobject jcpool, jint index);
 706 
 707 JNIEXPORT jobject JNICALL JVM_ConstantPoolGetFieldAtIfLoaded
 708 (JNIEnv *env, jobject unused, jobject jcpool, jint index);
 709 
 710 JNIEXPORT jobjectArray JNICALL JVM_ConstantPoolGetMemberRefInfoAt
 711 (JNIEnv *env, jobject unused, jobject jcpool, jint index);
 712 
 713 JNIEXPORT jint JNICALL JVM_ConstantPoolGetNameAndTypeRefIndexAt
 714 (JNIEnv *env, jobject obj, jobject unused, jint index);
 715 
 716 JNIEXPORT jobjectArray JNICALL JVM_ConstantPoolGetNameAndTypeRefInfoAt
 717 (JNIEnv *env, jobject obj, jobject unused, jint index);
 718 
 719 JNIEXPORT jint JNICALL JVM_ConstantPoolGetIntAt
 720 (JNIEnv *env, jobject unused, jobject jcpool, jint index);
 721 
 722 JNIEXPORT jlong JNICALL JVM_ConstantPoolGetLongAt
 723 (JNIEnv *env, jobject unused, jobject jcpool, jint index);
 724 
 725 JNIEXPORT jfloat JNICALL JVM_ConstantPoolGetFloatAt
 726 (JNIEnv *env, jobject unused, jobject jcpool, jint index);
 727 
 728 JNIEXPORT jdouble JNICALL JVM_ConstantPoolGetDoubleAt
 729 (JNIEnv *env, jobject unused, jobject jcpool, jint index);
 730 
 731 JNIEXPORT jstring JNICALL JVM_ConstantPoolGetStringAt
 732 (JNIEnv *env, jobject unused, jobject jcpool, jint index);
 733 
 734 JNIEXPORT jstring JNICALL JVM_ConstantPoolGetUTF8At
 735 (JNIEnv *env, jobject unused, jobject jcpool, jint index);
 736 
 737 JNIEXPORT jbyte JNICALL JVM_ConstantPoolGetTagAt
 738 (JNIEnv *env, jobject unused, jobject jcpool, jint index);
 739 
 740 /*
 741  * Parameter reflection
 742  */
 743 
 744 JNIEXPORT jobjectArray JNICALL
 745 JVM_GetMethodParameters(JNIEnv *env, jobject method);
 746 
 747 /*
 748  * java.security.*
 749  */
 750 
 751 JNIEXPORT jobject JNICALL
 752 JVM_GetInheritedAccessControlContext(JNIEnv *env, jclass cls);
 753 
 754 /*
 755  * Ensure that code doing a stackwalk and using javaVFrame::locals() to
 756  * get the value will see a materialized value and not a scalar-replaced
 757  * null value.
 758  */
 759 #define JVM_EnsureMaterializedForStackWalk(env, value) \
 760     do {} while(0) // Nothing to do.  The fact that the value escaped
 761                    // through a native method is enough.
 762 JNIEXPORT void JNICALL
 763 JVM_EnsureMaterializedForStackWalk_func(JNIEnv* env, jobject vthread, jobject value);
 764 
 765 JNIEXPORT jobject JNICALL
 766 JVM_GetStackAccessControlContext(JNIEnv *env, jclass cls);
 767 
 768 /*
 769  * Signal support, used to implement the shutdown sequence.  Every VM must
 770  * support JVM_SIGINT and JVM_SIGTERM, raising the former for user interrupts
 771  * (^C) and the latter for external termination (kill, system shutdown, etc.).
 772  * Other platform-dependent signal values may also be supported.
 773  */
 774 
 775 JNIEXPORT void * JNICALL
 776 JVM_RegisterSignal(jint sig, void *handler);
 777 
 778 JNIEXPORT jboolean JNICALL
 779 JVM_RaiseSignal(jint sig);
 780 
 781 JNIEXPORT jint JNICALL
 782 JVM_FindSignal(const char *name);
 783 
 784 /*
 785  * Retrieve the assertion directives for the specified class.
 786  */
 787 JNIEXPORT jboolean JNICALL
 788 JVM_DesiredAssertionStatus(JNIEnv *env, jclass unused, jclass cls);
 789 
 790 /*
 791  * Retrieve the assertion directives from the VM.
 792  */
 793 JNIEXPORT jobject JNICALL
 794 JVM_AssertionStatusDirectives(JNIEnv *env, jclass unused);
 795 
 796 /*
 797  * java.lang.ref.Finalizer
 798  */
 799 JNIEXPORT void JNICALL
 800 JVM_ReportFinalizationComplete(JNIEnv *env, jobject finalizee);
 801 
 802 JNIEXPORT jboolean JNICALL
 803 JVM_IsFinalizationEnabled(JNIEnv *env);
 804 
 805 /*************************************************************************
 806  PART 2: Support for the Verifier and Class File Format Checker
 807  ************************************************************************/
 808 /*
 809  * Return the class name in UTF format. The result is valid
 810  * until JVM_ReleaseUTf is called.
 811  *
 812  * The caller must treat the string as a constant and not modify it
 813  * in any way.
 814  */
 815 JNIEXPORT const char * JNICALL
 816 JVM_GetClassNameUTF(JNIEnv *env, jclass cb);
 817 
 818 /*
 819  * Returns the constant pool types in the buffer provided by "types."
 820  */
 821 JNIEXPORT void JNICALL
 822 JVM_GetClassCPTypes(JNIEnv *env, jclass cb, unsigned char *types);
 823 
 824 /*
 825  * Returns the number of Constant Pool entries.
 826  */
 827 JNIEXPORT jint JNICALL
 828 JVM_GetClassCPEntriesCount(JNIEnv *env, jclass cb);
 829 
 830 /*
 831  * Returns the number of *declared* fields or methods.
 832  */
 833 JNIEXPORT jint JNICALL
 834 JVM_GetClassFieldsCount(JNIEnv *env, jclass cb);
 835 
 836 JNIEXPORT jint JNICALL
 837 JVM_GetClassMethodsCount(JNIEnv *env, jclass cb);
 838 
 839 /*
 840  * Returns the CP indexes of exceptions raised by a given method.
 841  * Places the result in the given buffer.
 842  *
 843  * The method is identified by method_index.
 844  */
 845 JNIEXPORT void JNICALL
 846 JVM_GetMethodIxExceptionIndexes(JNIEnv *env, jclass cb, jint method_index,
 847                                 unsigned short *exceptions);
 848 /*
 849  * Returns the number of exceptions raised by a given method.
 850  * The method is identified by method_index.
 851  */
 852 JNIEXPORT jint JNICALL
 853 JVM_GetMethodIxExceptionsCount(JNIEnv *env, jclass cb, jint method_index);
 854 
 855 /*
 856  * Returns the byte code sequence of a given method.
 857  * Places the result in the given buffer.
 858  *
 859  * The method is identified by method_index.
 860  */
 861 JNIEXPORT void JNICALL
 862 JVM_GetMethodIxByteCode(JNIEnv *env, jclass cb, jint method_index,
 863                         unsigned char *code);
 864 
 865 /*
 866  * Returns the length of the byte code sequence of a given method.
 867  * The method is identified by method_index.
 868  */
 869 JNIEXPORT jint JNICALL
 870 JVM_GetMethodIxByteCodeLength(JNIEnv *env, jclass cb, jint method_index);
 871 
 872 /*
 873  * A structure used to a capture exception table entry in a Java method.
 874  */
 875 typedef struct {
 876     jint start_pc;
 877     jint end_pc;
 878     jint handler_pc;
 879     jint catchType;
 880 } JVM_ExceptionTableEntryType;
 881 
 882 /*
 883  * Returns the exception table entry at entry_index of a given method.
 884  * Places the result in the given buffer.
 885  *
 886  * The method is identified by method_index.
 887  */
 888 JNIEXPORT void JNICALL
 889 JVM_GetMethodIxExceptionTableEntry(JNIEnv *env, jclass cb, jint method_index,
 890                                    jint entry_index,
 891                                    JVM_ExceptionTableEntryType *entry);
 892 
 893 /*
 894  * Returns the length of the exception table of a given method.
 895  * The method is identified by method_index.
 896  */
 897 JNIEXPORT jint JNICALL
 898 JVM_GetMethodIxExceptionTableLength(JNIEnv *env, jclass cb, int index);
 899 
 900 /*
 901  * Returns the modifiers of a given field.
 902  * The field is identified by field_index.
 903  */
 904 JNIEXPORT jint JNICALL
 905 JVM_GetFieldIxModifiers(JNIEnv *env, jclass cb, int index);
 906 
 907 /*
 908  * Returns the modifiers of a given method.
 909  * The method is identified by method_index.
 910  */
 911 JNIEXPORT jint JNICALL
 912 JVM_GetMethodIxModifiers(JNIEnv *env, jclass cb, int index);
 913 
 914 /*
 915  * Returns the number of local variables of a given method.
 916  * The method is identified by method_index.
 917  */
 918 JNIEXPORT jint JNICALL
 919 JVM_GetMethodIxLocalsCount(JNIEnv *env, jclass cb, int index);
 920 
 921 /*
 922  * Returns the number of arguments (including this pointer) of a given method.
 923  * The method is identified by method_index.
 924  */
 925 JNIEXPORT jint JNICALL
 926 JVM_GetMethodIxArgsSize(JNIEnv *env, jclass cb, int index);
 927 
 928 /*
 929  * Returns the maximum amount of stack (in words) used by a given method.
 930  * The method is identified by method_index.
 931  */
 932 JNIEXPORT jint JNICALL
 933 JVM_GetMethodIxMaxStack(JNIEnv *env, jclass cb, int index);
 934 
 935 /*
 936  * Is a given method a constructor.
 937  * The method is identified by method_index.
 938  */
 939 JNIEXPORT jboolean JNICALL
 940 JVM_IsConstructorIx(JNIEnv *env, jclass cb, int index);
 941 
 942 /*
 943  * Is the given method generated by the VM.
 944  * The method is identified by method_index.
 945  */
 946 JNIEXPORT jboolean JNICALL
 947 JVM_IsVMGeneratedMethodIx(JNIEnv *env, jclass cb, int index);
 948 
 949 /*
 950  * Returns the name of a given method in UTF format.
 951  * The result remains valid until JVM_ReleaseUTF is called.
 952  *
 953  * The caller must treat the string as a constant and not modify it
 954  * in any way.
 955  */
 956 JNIEXPORT const char * JNICALL
 957 JVM_GetMethodIxNameUTF(JNIEnv *env, jclass cb, jint index);
 958 
 959 /*
 960  * Returns the signature of a given method in UTF format.
 961  * The result remains valid until JVM_ReleaseUTF is called.
 962  *
 963  * The caller must treat the string as a constant and not modify it
 964  * in any way.
 965  */
 966 JNIEXPORT const char * JNICALL
 967 JVM_GetMethodIxSignatureUTF(JNIEnv *env, jclass cb, jint index);
 968 
 969 /*
 970  * Returns the name of the field referred to at a given constant pool
 971  * index.
 972  *
 973  * The result is in UTF format and remains valid until JVM_ReleaseUTF
 974  * is called.
 975  *
 976  * The caller must treat the string as a constant and not modify it
 977  * in any way.
 978  */
 979 JNIEXPORT const char * JNICALL
 980 JVM_GetCPFieldNameUTF(JNIEnv *env, jclass cb, jint index);
 981 
 982 /*
 983  * Returns the name of the method referred to at a given constant pool
 984  * index.
 985  *
 986  * The result is in UTF format and remains valid until JVM_ReleaseUTF
 987  * is called.
 988  *
 989  * The caller must treat the string as a constant and not modify it
 990  * in any way.
 991  */
 992 JNIEXPORT const char * JNICALL
 993 JVM_GetCPMethodNameUTF(JNIEnv *env, jclass cb, jint index);
 994 
 995 /*
 996  * Returns the signature of the method referred to at a given constant pool
 997  * index.
 998  *
 999  * The result is in UTF format and remains valid until JVM_ReleaseUTF
1000  * is called.
1001  *
1002  * The caller must treat the string as a constant and not modify it
1003  * in any way.
1004  */
1005 JNIEXPORT const char * JNICALL
1006 JVM_GetCPMethodSignatureUTF(JNIEnv *env, jclass cb, jint index);
1007 
1008 /*
1009  * Returns the signature of the field referred to at a given constant pool
1010  * index.
1011  *
1012  * The result is in UTF format and remains valid until JVM_ReleaseUTF
1013  * is called.
1014  *
1015  * The caller must treat the string as a constant and not modify it
1016  * in any way.
1017  */
1018 JNIEXPORT const char * JNICALL
1019 JVM_GetCPFieldSignatureUTF(JNIEnv *env, jclass cb, jint index);
1020 
1021 /*
1022  * Returns the class name referred to at a given constant pool index.
1023  *
1024  * The result is in UTF format and remains valid until JVM_ReleaseUTF
1025  * is called.
1026  *
1027  * The caller must treat the string as a constant and not modify it
1028  * in any way.
1029  */
1030 JNIEXPORT const char * JNICALL
1031 JVM_GetCPClassNameUTF(JNIEnv *env, jclass cb, jint index);
1032 
1033 /*
1034  * Returns the class name referred to at a given constant pool index.
1035  *
1036  * The constant pool entry must refer to a CONSTANT_Fieldref.
1037  *
1038  * The result is in UTF format and remains valid until JVM_ReleaseUTF
1039  * is called.
1040  *
1041  * The caller must treat the string as a constant and not modify it
1042  * in any way.
1043  */
1044 JNIEXPORT const char * JNICALL
1045 JVM_GetCPFieldClassNameUTF(JNIEnv *env, jclass cb, jint index);
1046 
1047 /*
1048  * Returns the class name referred to at a given constant pool index.
1049  *
1050  * The constant pool entry must refer to CONSTANT_Methodref or
1051  * CONSTANT_InterfaceMethodref.
1052  *
1053  * The result is in UTF format and remains valid until JVM_ReleaseUTF
1054  * is called.
1055  *
1056  * The caller must treat the string as a constant and not modify it
1057  * in any way.
1058  */
1059 JNIEXPORT const char * JNICALL
1060 JVM_GetCPMethodClassNameUTF(JNIEnv *env, jclass cb, jint index);
1061 
1062 /*
1063  * Returns the modifiers of a field in calledClass. The field is
1064  * referred to in class cb at constant pool entry index.
1065  *
1066  * The caller must treat the string as a constant and not modify it
1067  * in any way.
1068  *
1069  * Returns -1 if the field does not exist in calledClass.
1070  */
1071 JNIEXPORT jint JNICALL
1072 JVM_GetCPFieldModifiers(JNIEnv *env, jclass cb, int index, jclass calledClass);
1073 
1074 /*
1075  * Returns the modifiers of a method in calledClass. The method is
1076  * referred to in class cb at constant pool entry index.
1077  *
1078  * Returns -1 if the method does not exist in calledClass.
1079  */
1080 JNIEXPORT jint JNICALL
1081 JVM_GetCPMethodModifiers(JNIEnv *env, jclass cb, int index, jclass calledClass);
1082 
1083 /*
1084  * Releases the UTF string obtained from the VM.
1085  */
1086 JNIEXPORT void JNICALL
1087 JVM_ReleaseUTF(const char *utf);
1088 
1089 /*
1090  * Compare if two classes are in the same package.
1091  */
1092 JNIEXPORT jboolean JNICALL
1093 JVM_IsSameClassPackage(JNIEnv *env, jclass class1, jclass class2);
1094 
1095 
1096 /*************************************************************************
1097  PART 3: I/O and Network Support
1098  ************************************************************************/
1099 
1100 /*
1101  * Convert a pathname into native format.  This function does syntactic
1102  * cleanup, such as removing redundant separator characters.  It modifies
1103  * the given pathname string in place.
1104  */
1105 JNIEXPORT char * JNICALL
1106 JVM_NativePath(char *);
1107 
1108 JNIEXPORT void * JNICALL
1109 JVM_RawMonitorCreate(void);
1110 
1111 JNIEXPORT void JNICALL
1112 JVM_RawMonitorDestroy(void *mon);
1113 
1114 JNIEXPORT jint JNICALL
1115 JVM_RawMonitorEnter(void *mon);
1116 
1117 JNIEXPORT void JNICALL
1118 JVM_RawMonitorExit(void *mon);
1119 
1120 /*
1121  * java.lang.management support
1122  */
1123 JNIEXPORT void* JNICALL
1124 JVM_GetManagement(jint version);
1125 
1126 /*
1127  * com.sun.tools.attach.VirtualMachine support
1128  *
1129  * Initialize the agent properties with the properties maintained in the VM.
1130  */
1131 JNIEXPORT jobject JNICALL
1132 JVM_InitAgentProperties(JNIEnv *env, jobject agent_props);
1133 
1134 JNIEXPORT jstring JNICALL
1135 JVM_GetTemporaryDirectory(JNIEnv *env);
1136 
1137 /* Generics reflection support.
1138  *
1139  * Returns information about the given class's EnclosingMethod
1140  * attribute, if present, or null if the class had no enclosing
1141  * method.
1142  *
1143  * If non-null, the returned array contains three elements. Element 0
1144  * is the java.lang.Class of which the enclosing method is a member,
1145  * and elements 1 and 2 are the java.lang.Strings for the enclosing
1146  * method's name and descriptor, respectively.
1147  */
1148 JNIEXPORT jobjectArray JNICALL
1149 JVM_GetEnclosingMethodInfo(JNIEnv* env, jclass ofClass);
1150 
1151 /*
1152  * Virtual thread support.
1153  */
1154 JNIEXPORT void JNICALL
1155 JVM_VirtualThreadStart(JNIEnv* env, jobject vthread);
1156 
1157 JNIEXPORT void JNICALL
1158 JVM_VirtualThreadEnd(JNIEnv* env, jobject vthread);
1159 
1160 JNIEXPORT void JNICALL
1161 JVM_VirtualThreadMount(JNIEnv* env, jobject vthread, jboolean hide);
1162 
1163 JNIEXPORT void JNICALL
1164 JVM_VirtualThreadUnmount(JNIEnv* env, jobject vthread, jboolean hide);
1165 
1166 JNIEXPORT void JNICALL
1167 JVM_VirtualThreadHideFrames(JNIEnv* env, jclass clazz, jboolean hide);
1168 
1169 JNIEXPORT void JNICALL
1170 JVM_VirtualThreadDisableSuspend(JNIEnv* env, jclass clazz, jboolean enter);
1171 
1172 /*
1173  * Core reflection support.
1174  */
1175 JNIEXPORT jint JNICALL
1176 JVM_GetClassFileVersion(JNIEnv *env, jclass current);
1177 
1178 /*
1179  * Return JNI_TRUE if warnings are printed when agents are dynamically loaded.
1180  */
1181 JNIEXPORT jboolean JNICALL
1182 JVM_PrintWarningAtDynamicAgentLoad(void);
1183 
1184 /*
1185  * This structure is used by the launcher to get the default thread
1186  * stack size from the VM using JNI_GetDefaultJavaVMInitArgs() with a
1187  * version of 1.1.  As it is not supported otherwise, it has been removed
1188  * from jni.h
1189  */
1190 typedef struct JDK1_1InitArgs {
1191     jint version;
1192 
1193     char **properties;
1194     jint checkSource;
1195     jint nativeStackSize;
1196     jint javaStackSize;
1197     jint minHeapSize;
1198     jint maxHeapSize;
1199     jint verifyMode;
1200     char *classpath;
1201 
1202     jint (JNICALL *vfprintf)(FILE *fp, const char *format, va_list args);
1203     void (JNICALL *exit)(jint code);
1204     void (JNICALL *abort)(void);
1205 
1206     jint enableClassGC;
1207     jint enableVerboseGC;
1208     jint disableAsyncGC;
1209     jint verbose;
1210     jboolean debugging;
1211     jint debugPort;
1212 } JDK1_1InitArgs;
1213 
1214 
1215 #ifdef __cplusplus
1216 } /* extern "C" */
1217 
1218 #endif /* __cplusplus */
1219 
1220 #endif /* !_JAVASOFT_JVM_H_ */