Skip to content

8210481: Remove #ifdef cplusplus from vmTestbase #647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
#include <stdlib.h>
#include <time.h>

#ifdef __cplusplus
extern "C" {
#endif

JNIEXPORT void JNICALL Java_gc_gctests_mallocWithGC1_mallocWithGC1_getMallocLock01
(JNIEnv *env, jobject obj) {
Expand All @@ -43,6 +41,4 @@ JNIEXPORT void JNICALL Java_gc_gctests_mallocWithGC1_mallocWithGC1_getMallocLock
}
}

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
#include <stdlib.h>
#include <time.h>

#ifdef __cplusplus
extern "C" {
#endif

JNIEXPORT void JNICALL Java_gc_gctests_mallocWithGC2_mallocWithGC2_getMallocLock02
(JNIEnv *env, jobject obj) {
Expand All @@ -43,6 +41,4 @@ JNIEXPORT void JNICALL Java_gc_gctests_mallocWithGC2_mallocWithGC2_getMallocLock
}
}

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
#include <stdlib.h>
#include <time.h>

#ifdef __cplusplus
extern "C" {
#endif

JNIEXPORT void JNICALL
Java_gc_gctests_mallocWithGC3_mallocWithGC3_getMallocLock03
Expand All @@ -44,6 +42,4 @@ Java_gc_gctests_mallocWithGC3_mallocWithGC3_getMallocLock03
}
}

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
#include <jni.h>
#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
* A C function that takes a reference to java Object( a circular Linked list)
Expand Down Expand Up @@ -66,6 +64,4 @@ Java_gc_gctests_nativeGC01_nativeGC01_nativeMethod01
return elementCount;
}

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
#include <jni.h>
#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif

/* A C function that takes a reference to java Object( a circular Linked list)
and utilizes this reference to do a java method callback to determine the
Expand Down Expand Up @@ -76,6 +74,4 @@ Java_gc_gctests_nativeGC02_nativeGC02_nativeMethod02
return elementCount;
}

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
*/
#include <jni.h>

#ifdef __cplusplus
extern "C" {
#endif

JNIEXPORT void JNICALL
Java_gc_gctests_nativeGC03_nativeGC03_nativeMethod03
Expand Down Expand Up @@ -57,6 +55,4 @@ Java_gc_gctests_nativeGC03_nativeGC03_nativeMethod03

}

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
#include <jni.h>
#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif

JNIEXPORT void JNICALL
Java_gc_gctests_nativeGC05_nativeGC05_kickOffRefillers
Expand Down Expand Up @@ -91,6 +89,4 @@ Java_gc_gctests_nativeGC05_nativeGC05_kickOffRefillers
}
}

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
#include <jni.h>
#include <aod.h>

#ifdef __cplusplus
extern "C" {
#endif

#define AGENT_NAME "VMNativeAgent00"

Expand Down Expand Up @@ -65,6 +63,4 @@ JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char *optionsString, void *res
return JNI_OK;
}

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
#include <jni.h>
#include <aod.h>

#ifdef __cplusplus
extern "C" {
#endif

#define AGENT_NAME "VMNativeAgent01"

Expand Down Expand Up @@ -68,6 +66,4 @@ JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char *optionsString, void *res
return JNI_OK;
}

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
#include <jni.h>
#include <aod.h>

#ifdef __cplusplus
extern "C" {
#endif

#define AGENT_NAME "VMNativeAgent02"

Expand Down Expand Up @@ -70,6 +68,4 @@ JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char *optionsString, void *res
return JNI_OK;
}

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
#include <jni.h>
#include <aod.h>

#ifdef __cplusplus
extern "C" {
#endif

#define AGENT_NAME "VMNativeAgent03"

Expand Down Expand Up @@ -59,6 +57,4 @@ JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char *optionsString, void *res
return ON_ATTACH_EXIT_CODE;
}

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
#include <jni.h>
#include <aod.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
* Test checks following spec clause: "Agent_OnAttach function is invoked even if the agent library was loaded
Expand Down Expand Up @@ -68,6 +66,4 @@ JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char *optionsString, void *res
return JNI_OK;
}

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
#include "jni_tools.h"
#include "jvmti_tools.h"

#ifdef __cplusplus
extern "C" {
#endif

/* ============================================================================= */

Expand Down Expand Up @@ -348,6 +346,4 @@ jint Agent_Initialize(JavaVM *jvm, char *options, void *reserved) {

/* ============================================================================= */

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
#include "jni_tools.h"
#include "jvmti_tools.h"

#ifdef __cplusplus
extern "C" {
#endif

/* ============================================================================= */

Expand Down Expand Up @@ -372,6 +370,4 @@ jint Agent_Initialize(JavaVM *jvm, char *options, void *reserved) {

/* ============================================================================= */

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
#include "jni_tools.h"
#include "jvmti_tools.h"

#ifdef __cplusplus
extern "C" {
#endif

/* ============================================================================= */

Expand Down Expand Up @@ -221,6 +219,4 @@ jint Agent_Initialize(JavaVM *jvm, char *options, void *reserved) {

/* ============================================================================= */

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
#include "agent_common.h"
#include "jvmti_tools.h"

#ifdef __cplusplus
extern "C" {
#endif

/* ============================================================================= */

Expand Down Expand Up @@ -88,6 +86,4 @@ jint Agent_Initialize(JavaVM *jvm, char *options, void *reserved) {

/* ============================================================================= */

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
#include "jvmti.h"
#include "agent_common.h"

#ifdef __cplusplus
extern "C" {
#endif

/* ============================================================================= */

Expand Down Expand Up @@ -69,6 +67,4 @@ jint Agent_Initialize(JavaVM *jvm, char *options, void *reserved) {

/* ============================================================================= */

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
#include "jvmti.h"
#include "agent_common.h"

#ifdef __cplusplus
extern "C" {
#endif

/* ============================================================================= */

Expand Down Expand Up @@ -69,6 +67,4 @@ jint Agent_Initialize(JavaVM *jvm, char *options, void *reserved) {

/* ============================================================================= */

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
#include "agent_common.h"
#include "jvmti_tools.h"

#ifdef __cplusplus
extern "C" {
#endif

/* ============================================================================= */

Expand Down Expand Up @@ -83,6 +81,4 @@ Agent_OnUnload(JavaVM *jvm)

/* ============================================================================= */

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
#include <aod.h>
#include <jvmti_aod.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
* Expected agent work scenario:
Expand Down Expand Up @@ -241,6 +239,4 @@ Agent_OnAttach(JavaVM *vm, char *optionsString, void *reserved)
return JNI_OK;
}

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
#include <aod.h>
#include <jvmti_aod.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
* Expected agent work scenario:
Expand Down Expand Up @@ -130,6 +128,4 @@ Agent_OnAttach(JavaVM *vm, char *optionsString, void *reserved)
return JNI_OK;
}

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
#include <aod.h>
#include <jvmti_aod.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
* Expected agent work scenario:
Expand Down Expand Up @@ -148,6 +146,4 @@ Agent_OnAttach(JavaVM *vm, char *optionsString, void *reserved)
return JNI_OK;
}

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
#include <aod.h>
#include <jvmti_aod.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
* Expected agent work scenario:
Expand Down Expand Up @@ -160,6 +158,4 @@ Agent_OnAttach(JavaVM *vm, char *optionsString, void *reserved)
return JNI_OK;
}

#ifdef __cplusplus
}
#endif
Loading