[fpc-devel] About building JNI library for arm-linux

2016-10-31 Thread Gennady Agranov
>>> Why do you use LCL in your JNI library? >>> Try a simple library without LCL and check if it loads. It works! Great Thanks! Does anyone know what to do about: Java HotSpot(TM) Client VM warning: You have loaded library

Re: [fpc-devel] About building JNI library for arm-linux

2016-10-31 Thread Yury Sidorov
On 10/31/2016 10:01 PM, Gennady Agranov wrote: I have an issue with loading JNI library for Raspberry :( I do compile with -Cg -WX and stack checking on (and also without). But even this method is not called :( function JNI_OnLoad(vm: PJavaVM; reserved: pointer): jint; {$ifdef

Re: [fpc-devel] A generic function for (multicore) cache flush?

2016-10-31 Thread Nikolai Zhubr
31.10.2016 23:07, Vincent Snijders: Is there any good generic (portable) function to ensure memory cache flush for a thread on a multicore system? Maybe: http://www.freepascal.org/docs-html/rtl/system/readwritebarrier.html Oh yes! That's the thing! Thanks a lot! Nikolai Vincent

Re: [fpc-devel] About building JNI library for arm-linux

2016-10-31 Thread Jonas Maebe
Gennady Agranov wrote: > I thought that "reply" and changing the subject to a new one will do the > trick... > > Is "topic" stored somewhere in the mail headers? There is an "In-Reply-To" header, which states to which message your message is a reply. All related replies are grouped into the same

Re: [fpc-devel] About building JNI library for arm-linux

2016-10-31 Thread Gennady Agranov
I thought that "reply" and changing the subject to a new one will do the trick... Is "topic" stored somewhere in the mail headers? Sorry, Gennady On 10/31/2016 4:42 PM, wkitt...@windstream.net wrote: On 10/31/2016 04:01 PM, Gennady Agranov wrote: Hi, I have an issue with loading JNI

Re: [fpc-devel] A generic function for (multicore) cache flush?

2016-10-31 Thread Mark Morgan Lloyd
On 31/10/16 18:48, Nikolai Zhubr wrote: Hello all, Is there any good generic (portable) function to ensure memory cache flush for a thread on a multicore system? What I'm trying to do is essentially fetch some debugging counters from multiple threads. They might happen to run on separate

Re: [fpc-devel] A generic function for (multicore) cache flush?

2016-10-31 Thread Nikolai Zhubr
31.10.2016 22:44, Jeppe Johansen: Is there any good generic (portable) function to ensure memory cache flush for a thread on a multicore system? What I'm trying to do is essentially fetch some debugging counters from multiple threads. They might happen to run on separate cores, thus having

Re: [fpc-devel] A generic function for (multicore) cache flush?

2016-10-31 Thread Vincent Snijders
2016-10-31 19:33 GMT+01:00 Nikolai Zhubr : > Hello all, > > Is there any good generic (portable) function to ensure memory cache flush > for a thread on a multicore system? > Maybe: http://www.freepascal.org/docs-html/rtl/system/readwritebarrier.html Vincent

[fpc-devel] About building JNI library for arm-linux

2016-10-31 Thread Gennady Agranov
Hi, I have an issue with loading JNI library for Raspberry :( I do compile with -Cg -WX and stack checking on (and also without). But even this method is not called :( function JNI_OnLoad(vm: PJavaVM; reserved: pointer): jint; {$ifdef linux}cdecl{$else}stdcall{$endif}; begin

[fpc-devel] A generic function for (multicore) cache flush?

2016-10-31 Thread Nikolai Zhubr
Hello all, Is there any good generic (portable) function to ensure memory cache flush for a thread on a multicore system? What I'm trying to do is essentially fetch some debugging counters from multiple threads. They might happen to run on separate cores, thus having something pending in