comparison src/share/vm/prims/jvm.h @ 6725:da91efe96a93

6964458: Reimplement class meta-data storage to use native memory Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author coleenp
date Sat, 01 Sep 2012 13:25:18 -0400
parents 8b0a4867acf0
children 35431a769282
comparison
equal deleted inserted replaced
6724:36d1d483d5d6 6725:da91efe96a93
1 /* 1 /*
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2012, 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.
548 548
549 JNIEXPORT jobject JNICALL 549 JNIEXPORT jobject JNICALL
550 JVM_GetClassConstantPool(JNIEnv *env, jclass cls); 550 JVM_GetClassConstantPool(JNIEnv *env, jclass cls);
551 551
552 JNIEXPORT jint JNICALL JVM_ConstantPoolGetSize 552 JNIEXPORT jint JNICALL JVM_ConstantPoolGetSize
553 (JNIEnv *env, jobject unused, jobject jcpool); 553 (JNIEnv *env, jobject obj, jobject unused);
554 554
555 JNIEXPORT jclass JNICALL JVM_ConstantPoolGetClassAt 555 JNIEXPORT jclass JNICALL JVM_ConstantPoolGetClassAt
556 (JNIEnv *env, jobject unused, jobject jcpool, jint index); 556 (JNIEnv *env, jobject obj, jobject unused, jint index);
557 557
558 JNIEXPORT jclass JNICALL JVM_ConstantPoolGetClassAtIfLoaded 558 JNIEXPORT jclass JNICALL JVM_ConstantPoolGetClassAtIfLoaded
559 (JNIEnv *env, jobject unused, jobject jcpool, jint index); 559 (JNIEnv *env, jobject obj, jobject unused, jint index);
560 560
561 JNIEXPORT jobject JNICALL JVM_ConstantPoolGetMethodAt 561 JNIEXPORT jobject JNICALL JVM_ConstantPoolGetMethodAt
562 (JNIEnv *env, jobject unused, jobject jcpool, jint index); 562 (JNIEnv *env, jobject obj, jobject unused, jint index);
563 563
564 JNIEXPORT jobject JNICALL JVM_ConstantPoolGetMethodAtIfLoaded 564 JNIEXPORT jobject JNICALL JVM_ConstantPoolGetMethodAtIfLoaded
565 (JNIEnv *env, jobject unused, jobject jcpool, jint index); 565 (JNIEnv *env, jobject obj, jobject unused, jint index);
566 566
567 JNIEXPORT jobject JNICALL JVM_ConstantPoolGetFieldAt 567 JNIEXPORT jobject JNICALL JVM_ConstantPoolGetFieldAt
568 (JNIEnv *env, jobject unused, jobject jcpool, jint index); 568 (JNIEnv *env, jobject obj, jobject unused, jint index);
569 569
570 JNIEXPORT jobject JNICALL JVM_ConstantPoolGetFieldAtIfLoaded 570 JNIEXPORT jobject JNICALL JVM_ConstantPoolGetFieldAtIfLoaded
571 (JNIEnv *env, jobject unused, jobject jcpool, jint index); 571 (JNIEnv *env, jobject obj, jobject unused, jint index);
572 572
573 JNIEXPORT jobjectArray JNICALL JVM_ConstantPoolGetMemberRefInfoAt 573 JNIEXPORT jobjectArray JNICALL JVM_ConstantPoolGetMemberRefInfoAt
574 (JNIEnv *env, jobject unused, jobject jcpool, jint index); 574 (JNIEnv *env, jobject obj, jobject unused, jint index);
575 575
576 JNIEXPORT jint JNICALL JVM_ConstantPoolGetIntAt 576 JNIEXPORT jint JNICALL JVM_ConstantPoolGetIntAt
577 (JNIEnv *env, jobject unused, jobject jcpool, jint index); 577 (JNIEnv *env, jobject obj, jobject unused, jint index);
578 578
579 JNIEXPORT jlong JNICALL JVM_ConstantPoolGetLongAt 579 JNIEXPORT jlong JNICALL JVM_ConstantPoolGetLongAt
580 (JNIEnv *env, jobject unused, jobject jcpool, jint index); 580 (JNIEnv *env, jobject obj, jobject unused, jint index);
581 581
582 JNIEXPORT jfloat JNICALL JVM_ConstantPoolGetFloatAt 582 JNIEXPORT jfloat JNICALL JVM_ConstantPoolGetFloatAt
583 (JNIEnv *env, jobject unused, jobject jcpool, jint index); 583 (JNIEnv *env, jobject obj, jobject unused, jint index);
584 584
585 JNIEXPORT jdouble JNICALL JVM_ConstantPoolGetDoubleAt 585 JNIEXPORT jdouble JNICALL JVM_ConstantPoolGetDoubleAt
586 (JNIEnv *env, jobject unused, jobject jcpool, jint index); 586 (JNIEnv *env, jobject obj, jobject unused, jint index);
587 587
588 JNIEXPORT jstring JNICALL JVM_ConstantPoolGetStringAt 588 JNIEXPORT jstring JNICALL JVM_ConstantPoolGetStringAt
589 (JNIEnv *env, jobject unused, jobject jcpool, jint index); 589 (JNIEnv *env, jobject obj, jobject unused, jint index);
590 590
591 JNIEXPORT jstring JNICALL JVM_ConstantPoolGetUTF8At 591 JNIEXPORT jstring JNICALL JVM_ConstantPoolGetUTF8At
592 (JNIEnv *env, jobject unused, jobject jcpool, jint index); 592 (JNIEnv *env, jobject obj, jobject unused, jint index);
593 593
594 /* 594 /*
595 * java.security.* 595 * java.security.*
596 */ 596 */
597 597