Skip to content
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

Add native method stubs for jdk.jfr.internal.jvm #20053

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thallium
Copy link
Contributor

No description provided.

@thallium
Copy link
Contributor Author

@tajila FYI

runtime/jcl/CMakeLists.txt Outdated Show resolved Hide resolved
@@ -21,4 +21,69 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0-only WITH Classpath-ex
-->
<exports group="jfr">
<export name="Java_com_ibm_oti_vm_VM_triggerExecutionSample" />
<export name="Java_jdk_jfr_internal_JVM_registerNatives" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

youll also need a objects.xml for UMA build system

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then youll need to update runtime/jcl/module.xml to add both the objects and the exports file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late reply, I've done the changes

SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0 OR GPL-2.0-only WITH OpenJDK-assembly-exception-1.0
-->
<objects group="jfr">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should also have

	<object name="Java_jdk_jfr_internal_JVM" >
		<include-if condition="spec.flags.opt_jfr" />
	</object>

@@ -65,6 +65,7 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0-only WITH Classpath-ex
<xi:include href="uma/se9_objects.xml"></xi:include>
<xi:include href="uma/se16_objects.xml"></xi:include>
<xi:include href="uma/se19_objects.xml"></xi:include>
<xi:include href="uma/jfr_objects.xml"></xi:include>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need an entry in the objects list below as well

			<group name="jfr">
				<include-if condition="spec.flags.opt_jfr"/>
			</group>

Copy link
Contributor

@tajila tajila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try building this in the internal farm with vmfarm on java8. Also try building it with openj9 with --without-cmake config flag

@thallium thallium force-pushed the jfr-internal-jvm branch 2 times, most recently from 2f123ed to 95d5b08 Compare September 19, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants