You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Matteo Di Giovinazzo <ma...@gmail.com> on 2020/02/26 18:39:23 UTC

Profiling method calls does not work with JDK newer than 1.8

Hi,
since the NB 12.0 merge window is open, I would strongly suggest to have
this fixed by 12.0:

Profiling method calls does not work with JDK newer than 1.8
https://issues.apache.org/jira/browse/NETBEANS-3896

Thanks!

-- 
Matteo Di Giovinazzo

Re: Profiling method calls does not work with JDK newer than 1.8

Posted by Peter Hull <pe...@gmail.com>.
On Wed, 26 Feb 2020 at 20:00, Matthias Bläsing
<mb...@doppel-helix.eu> wrote:
> ok - I'll aks the obvious question: Why try to squeze a pointer sized
> type into a int sized type? Why not use a jlong?
I've been back and forth on this one - I actually implemented it both ways.
I went for mapping jmethodID to jint because it didn't need any
changes *at all* to the Java code or the wire protocol, and allowed
all the old native libraries to work unchanged. Although more
processing is needed in the native code, performance seemed OK to me,
and it would be offset by not having to double the amount of data sent
over the wire.
For the 'all 64 bit/jlong' alternative I wasn't 100% confident I had
found all places where changes were required. I also looked at a third
option of having two wire protocols for 32 and 64-bit and this seemed
even more complicated!
Having said that, are we close to the point where all JVMs are 64 bit?
Should we just get on with it and go for 64-bit?
Any comments welcome!
Pete
ps. I look forward to discussing again in a few decades, when 128-bit
pointers are the norm!!

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Profiling method calls does not work with JDK newer than 1.8

Posted by Matthias Bläsing <mb...@doppel-helix.eu>.
Hi,

Am Mittwoch, den 26.02.2020, 12:42 -0700 schrieb Matteo Di Giovinazzo:
> Thanks Peter! I closed 3896 as a duplicate of 1428.
> 
> I found the whole thread and I see you found a solution: NB 12.0
> might be a
> good occasion to get this sorted out. I see in one of your last
> comments
> [1] you were stuck on integrating the fix in NetBeans infrastructure
> build.
> I guess I can try to help you.
> 
> Let's get this in 12.0 LTS release!
> -Matteo
> 

ok - I'll aks the obvious question: Why try to squeze a pointer sized
type into a int sized type? Why not use a jlong? A jlong will always be
able to hold 64bit and while I can imagine that at some point 128bit
pointers might become reality I think we are far away from it.

Of course that would mean the wire protocol needs to be updated, but I
think everybody would be saner at the end if no guesses about the
structure of the value would be required.

Greetings

Matthias


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Profiling method calls does not work with JDK newer than 1.8

Posted by Matthias Bläsing <mb...@doppel-helix.eu>.
Hi,

Am Mittwoch, den 26.02.2020, 21:00 +0000 schrieb Peter Hull:
> As I understand it, we need to build the native interface (DLL/SO) on
> every platform we support, zip them up into
> profiler-external-binaries-8.2.zip (or -12 I guess!) then upload to
> netbeans.osuosl.org/binaries, and finally update the binaries-list
> file in the NB source.

This sounds right - the number in the filename is the version of the
library. The 8.2 is derived from the original source of the binaries.
When a rebuild happens the license also should be updated. We are
currently using the CDDL licensed binaries from 8.2, but the new
binaries would be covered by the ALv2.

> My specific problems were:
> * can't build for every platform, especially old ones (HP-UX, for
> example) - we might need to take a decision to drop some platforms.

Sounds good - if we get at least the main platforms covered we should
be good to go. Mac, Windows, Linux should be easy, I think I could help
on solaris. I would also consider dropping support for platforms pre
1.6.

> * I don't know who to ask about uploading to osuosl.

The PMC has access to the server, so ask on the dev mailing list and
you should get help. If noone reacts, please ask again, sometimes it
needs more intensive prodding.

> Currently I've rebuilt for Win, Mac and Linux, and superficially
> tested them, enough for a more thorough testing as part of NetCAT.
> I just need to tidy up my branch and will put in a PR fairly soon.

Thank you! This sounds great.

Greetings

Matthias


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Profiling method calls does not work with JDK newer than 1.8

Posted by Peter Hull <pe...@gmail.com>.
On Wed, 26 Feb 2020 at 19:42, Matteo Di Giovinazzo <ma...@gmail.com> wrote:
> I found the whole thread and I see you found a solution: NB 12.0 might be a
> good occasion to get this sorted out.
Agreed, I have been a bit quiet recently because I was waiting for all
the 11.3 stuff to settle down.
> I see in one of your last comments
> [1] you were stuck on integrating the fix in NetBeans infrastructure build.
> I guess I can try to help you.
As I understand it, we need to build the native interface (DLL/SO) on
every platform we support, zip them up into
profiler-external-binaries-8.2.zip (or -12 I guess!) then upload to
netbeans.osuosl.org/binaries, and finally update the binaries-list
file in the NB source.
My specific problems were:
* can't build for every platform, especially old ones (HP-UX, for
example) - we might need to take a decision to drop some platforms.
* I don't know who to ask about uploading to osuosl.
Currently I've rebuilt for Win, Mac and Linux, and superficially
tested them, enough for a more thorough testing as part of NetCAT.
I just need to tidy up my branch and will put in a PR fairly soon.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Profiling method calls does not work with JDK newer than 1.8

Posted by Matteo Di Giovinazzo <ma...@gmail.com>.
Thanks Peter! I closed 3896 as a duplicate of 1428.

I found the whole thread and I see you found a solution: NB 12.0 might be a
good occasion to get this sorted out. I see in one of your last comments
[1] you were stuck on integrating the fix in NetBeans infrastructure build.
I guess I can try to help you.

Let's get this in 12.0 LTS release!
-Matteo

[1]
https://issues.apache.org/jira/browse/NETBEANS-1428?focusedCommentId=17027306&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17027306

On Wed, 26 Feb 2020 at 12:15, Peter Hull <pe...@gmail.com> wrote:

> On Wed, 26 Feb 2020 at 18:39, Matteo Di Giovinazzo <ma...@gmail.com>
> wrote:
> >
> > Profiling method calls does not work with JDK newer than 1.8
> > https://issues.apache.org/jira/browse/NETBEANS-3896
> It is the same as https://issues.apache.org/jira/browse/NETBEANS-1428 I
> think.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

-- 
Matteo Di Giovinazzo

Re: Profiling method calls does not work with JDK newer than 1.8

Posted by Peter Hull <pe...@gmail.com>.
On Wed, 26 Feb 2020 at 18:39, Matteo Di Giovinazzo <ma...@gmail.com> wrote:
>
> Profiling method calls does not work with JDK newer than 1.8
> https://issues.apache.org/jira/browse/NETBEANS-3896
It is the same as https://issues.apache.org/jira/browse/NETBEANS-1428 I think.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists