System.java Development Question

2018-08-03 Thread mr rupplin
Hello. I'm not sure if there's a minor typo but I cannot find the error in it. Can you guys look? In System.c we have: JNIEXPORT void JNICALL Java_java_lang_System_setMemoryAllocationListener0(JNIEnv *env, jclass cla, jobject listener) { jfieldID fid = (*env)->GetStaticFieldID(env,cla,

Re: System.java Development Question

2018-08-03 Thread mr rupplin
This is an OpenJDK 9 build. Can you explain? I'm very interested in getting all the details understood. Hey thanks! MR From: Alan Bateman Sent: Friday, August 3, 2018 9:38 AM To: mr rupplin; [email protected] Subject: Re: System.java Develo

Re: System.java Development Question

2018-08-04 Thread mr rupplin
Any help? From: mr rupplin Sent: Friday, August 3, 2018 9:42:26 AM To: Alan Bateman; [email protected] Subject: Re: System.java Development Question This is an OpenJDK 9 build. Can you explain? I'm very interested in getting all the de

Re: System.java Development Question

2018-08-06 Thread mr rupplin
: Monday, August 6, 2018 2:12:35 AM To: [email protected]; [email protected] Subject: Re: System.java Development Question On 2018-08-04 14:29, mr rupplin wrote: > Any help? I think it would help if you described what you're trying to achieve, rather than the current stumbli

Core Type Compilation Issues

2018-08-06 Thread mr rupplin
Three problems that I run into when running the 'make jdk' after minor work on the System.java class for JNI and custom JDK: java/lang/memory/GroupListener.java:111: warning: [rawtypes] found raw type: Class Class basetype = null; -- -- java/lang/memory/GroupListener.java:7: error: p

Re: System.java Development Question

2018-08-06 Thread mr rupplin
PM To: mr rupplin; [email protected] Subject: Re: System.java Development Question Hi Max, On 2018-08-06 17:55, mr rupplin wrote: Clases, Hello. Firstly thank you for replying. Of course our goal is to show the strengths in the OpenJDK. Some weeks ago we were working wit

JVMTI lib location

2018-08-10 Thread mr rupplin
Trying to write a quick agent for the JVM. The jvmti.h file is found quickly but I do not know what to link it with. Can you guys help? Thanks. Max r.

C files and their Mapping(s)

2018-08-11 Thread mr rupplin
Hello. Thanks for taking time. We had a quick question about the Java to C mappings in the JDK. For instance the System.java has a corresponding System.c and even a System.o. We find these without too much problem. However many of the "core" packages (corba, nashorn, jaxp, jaxws) do not hav

Command 'make jdk' no longer runs ; request a quick look

2018-08-12 Thread mr rupplin
Building target 'jdk' in configuration 'linux-x86_64-normal-server-release' Creating ct.sym classes Compiling 11 properties into resource bundles for java.logging Compiling 2 files for BUILD_BREAKITERATOR_BASE Compiling 2 files for BUILD_BREAKITERATOR_LD Exception in thread "main" java.lang.Asserti

Re: JVMTI lib location

2018-08-12 Thread mr rupplin
: David Holmes Sent: Sunday, August 12, 2018 7:07 PM To: mr rupplin; [email protected]; serviceability-dev Subject: Re: JVMTI lib location Hi Max, On 11/08/2018 6:41 AM, mr rupplin wrote: > Trying to write a quick agent for the JVM. The jvmti.h file is found quickly > but I

Makefile Suppress Deprecation Warnings

2018-08-12 Thread mr rupplin
Where in the Makefile would we add this to silence to deprecated warnings from GCC compiler? -Wno-deprecated Who thought this would be fine? To run this seem falty. ok

OpenJDK 9 - Make (no deprecations flag setting)

2018-08-14 Thread mr rupplin
Where in Makefile do we add this - to suppress deprecation warnings - to our personal builds. Thanks. MR

Removing the Barrier

2018-08-15 Thread mr rupplin
Can you explain how to remove the requirement for comments in the OpenJDK build in the Java source files? It's really killing my schedule to have to reinsert comments by hand. Thanks. Max R. Software Developer

Compile Error

2018-08-16 Thread mr rupplin
Spot what's the issue here: Compiling 4 files for BUILD_JIGSAW_TOOLS Error occurred during initialization of VM java.lang.NullPointerException at jdk.internal.misc.VM.saveAndRemoveProperties(java.base/VM.java:176) at java.lang.System.initPhase1(java.base/System.java:802) >> make/

Moderator Responsibilities

2018-08-17 Thread mr rupplin
Hello. I have been contacted by someone who has stated that there are complaints that we ask the channel about debug questions. I have 12+ years in Software and a Masters Degree in Computer Science. There will be no more kid games. If you are asked, please answer fully and promptly. Debugg

JVMInit function call - where is it located the source?

2018-08-21 Thread mr rupplin
Inside java.c there is a JLI_Launch which purports to be the launching or entry point for the JVM. The last line shows: return JVMInit(&ifn, threadStackSize, argc, argv, mode, what, ret); This is given apparently as a function call that will return an int. However the include file java.h sh

Re: JVMInit function call - where is it located the source?

2018-08-21 Thread mr rupplin
Thanks. Get Outlook for Android<https://aka.ms/ghei36> From: Andrew Haley Sent: Tuesday, August 21, 2018 12:32:20 PM To: mr rupplin; [email protected] Subject: Re: JVMInit function call - where is it located the source? On 08/21/2018 05:21

Re: JVMInit function call - where is it located the source?

2018-08-21 Thread mr rupplin
Quickly, where do we look? I can't seem to find where the "javac" command is called in the C interface. Where is the java code that runs the parser/compiler? Ok, thanks gotta run ably. /mr ____ From: mr rupplin Sent: Tuesday, August 21, 201

Re: JVMInit function call - where is it located the source?

2018-08-21 Thread mr rupplin
Ok, David. Great, you did it. From: David Holmes Sent: Tuesday, August 21, 2018 9:38:06 PM To: mr rupplin; [email protected]; Andrew Haley Subject: Re: JVMInit function call - where is it located the source? On 22/08/2018 11:02 AM, mr rupplin wrote

Javac Compiler

2018-08-23 Thread mr rupplin
com.sun.tools.javac.main.Main com.sun.tools.javac.main.Main compiler = new com.sun.tools.javac.main.Main("javac"); return compiler.compile(args).exitCode; I see this down in jdk.compiler. The com.sun.tools.javac.main folder doesn't exist.

Interpreter Function Handler

2018-08-23 Thread mr rupplin
jdk9/hotspot/src/share/vm/interpreter/interpreterRuntime.cpp Where does Java handle pass by value? Where can I see that implementation? Great. Thank you.

JVM Interpreter

2018-08-25 Thread mr rupplin
I am presuming the JVM interpreter is defined/implemented in the the hotspot module since this is a JVM implementation. I cannot seem to find *any* instruction in it that gets called by a simple "./java -ea Class" call. We are stumped. For instance there are methods for local set and referen

Re: JVM Interpreter

2018-08-26 Thread mr rupplin
Thanks you guys. I will try not to run junk into channel and you guys promise to stay well run. Ok. Get Outlook for Android<https://aka.ms/ghei36> From: Kim Barrett Sent: Saturday, August 25, 2018 11:47:41 PM To: mr rupplin Cc: [email protected]

Java VM Questions

2018-08-28 Thread mr rupplin
Can I ask you guys a quick question. Does the VM development team plan on implementing any pure pass by reference. Also I think we would like security and RMI integration going forward with the VM directly. No way to hook memory allocation seems like a miss. Let me know with some feedback.