From: Sneha Ramani Date: 2018-04-27T10:44:47+05:30 Subject: [ruby-core:86708] Re: [Ruby trunk Bug#12607] Ruby needs an atomic integer --===============1968909261== Content-Type: multipart/alternative; boundary="0000000000003129e5056acd9523" --0000000000003129e5056acd9523 Content-Type: text/plain; charset="UTF-8" hi, Can someone please guide me on How to call jruby from java class. On Tue, Apr 24, 2018 at 5:52 PM, wrote: > Issue #12607 has been updated by rosenfeld (Rodrigo Rosenfeld Rosas). > > > Should this issue be assigned to Matz? > > ---------------------------------------- > Bug #12607: Ruby needs an atomic integer > https://bugs.ruby-lang.org/issues/12607#change-71623 > > * Author: shyouhei (Shyouhei Urabe) > * Status: Feedback > * Priority: Normal > * Assignee: ko1 (Koichi Sasada) > * Target version: > * ruby -v: > * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN > ---------------------------------------- > (This one was derived from bug #12463) > > Although I don't think += would become atomic, at the same time I > understand Rodrigo's needs of _easier_ counter variable that resists > inter-thread tampering. I don't think ruby's Integer class can be used for > that purpose for reasons (mainly because it is not designed with threads in > mind). Rather we should introduce a integer class which is carefully > designed. > > Why not import Concurrent::AtomicFixnum into core? > > > > -- > https://bugs.ruby-lang.org/ > > Unsubscribe: > > --0000000000003129e5056acd9523 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
hi,

Can someone please guide me on How t= o call jruby from java class.

On Tue, Apr 24, 2018 at 5:52 PM, &= lt;rr.rosas@gmail.c= om> wrote:
Issue #12607 has= been updated by rosenfeld (Rodrigo Rosenfeld Rosas).


Should this issue be assigned to Matz?

----------------------------------------
Bug #12607: Ruby needs an atomic integer
https://bugs.ruby-lang.org/issues/12607#cha= nge-71623

* Author: shyouhei (Shyouhei Urabe)
* Status: Feedback
* Priority: Normal
* Assignee: ko1 (Koichi Sasada)
* Target version:
* ruby -v:
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
(This one was derived from bug #12463)

Although I don't think +=3D would become atomic, at the same time I und= erstand Rodrigo's needs of _easier_ counter variable that resists inter= -thread tampering.=C2=A0 I don't think ruby's Integer class can be = used for that purpose for reasons (mainly because it is not designed with t= hreads in mind).=C2=A0 Rather we should introduce a integer class which is = carefully designed.

Why not import Concurrent::AtomicFixnum into core?



--
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:= ruby-core-request@ruby-lang.org?subject=3Dunsubscribe>
<http://lists.ruby-lang.org/cgi-= bin/mailman/options/ruby-core>

--0000000000003129e5056acd9523-- --===============1968909261== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Unsubscribe: --===============1968909261==--