bga57 has quit [Ping timeout: 240 seconds]
bga57 has joined #jruby
jmalves has joined #jruby
jmalves has quit [Ping timeout: 256 seconds]
<travis-ci> jruby/jruby (master:888673f by Charles Oliver Nutter): The build was fixed. https://travis-ci.org/jruby/jruby/builds/694473798 [145 min 22 sec]
travis-ci has left #jruby [#jruby]
travis-ci has joined #jruby
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:d6686d0 by Charles Oliver Nutter): The build was broken. https://travis-ci.org/jruby/jruby/builds/694485648 [29 min 55 sec]
travis-ci has left #jruby [#jruby]
<headius[m]> stupid maven
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:04f7d80 by Charles Oliver Nutter): The build was broken. https://travis-ci.org/jruby/jruby/builds/694486036 [36 min 24 sec]
travis-ci has left #jruby [#jruby]
travis-ci has joined #jruby
travis-ci has left #jruby [#jruby]
<travis-ci> jruby/jruby (master:0275f6f by Charles Oliver Nutter): The build was broken. https://travis-ci.org/jruby/jruby/builds/694486191 [36 min 16 sec]
<headius[m]> shaddap
<headius[m]> I'd turn those off but I don't get failed build notifications other ways (email is not noisy enough)
travis-ci has joined #jruby
<travis-ci> jruby/jruby (master:e5d98e4 by Charles Oliver Nutter): The build is still failing. https://travis-ci.org/jruby/jruby/builds/694487866 [34 min 17 sec]
travis-ci has left #jruby [#jruby]
<travis-ci> jruby/jruby (master:bcd8a58 by Charles Oliver Nutter): The build is still failing. https://travis-ci.org/jruby/jruby/builds/694488736 [34 min 30 sec]
travis-ci has joined #jruby
travis-ci has left #jruby [#jruby]
jmalves has joined #jruby
jmalves has quit [Ping timeout: 272 seconds]
Antiarc has quit [Read error: Connection reset by peer]
Antiarc has joined #jruby
Antiarc has quit [Read error: Connection reset by peer]
Antiarc has joined #jruby
Antiarc_ has joined #jruby
Antiarc has quit [Ping timeout: 258 seconds]
jmalves has joined #jruby
jmalves has quit [Ping timeout: 258 seconds]
Antiarc_ has quit [Ping timeout: 260 seconds]
Antiarc has joined #jruby
Antiarc has quit [Ping timeout: 260 seconds]
Antiarc has joined #jruby
ur5us has quit [Ping timeout: 260 seconds]
jmalves has joined #jruby
jmalves has quit [Ping timeout: 256 seconds]
jmalves has joined #jruby
<jmalves> @rg[m] the idea is to not allow other threads to enter for example the "synchronized" methods in that object. I could refactor ofc the java class to use an explicit mutex but I was wondering if this is possible to do from ruby without having to change the java class.
jmalves has quit [Remote host closed the connection]
jmalves has joined #jruby
<headius[m]> Jason Rogers: did anyone reply to you?
<headius[m]> could be that something we're doing uses more stack than it should but 23M is extreme
<headius[m]> if you haven't already I'd open an issue and give us something to repro
<headius[m]> jmalves: I think I missed this conversation
<jmalves> Hey headius! My question was if is there a way to do the equivalent of `synchronized (object) { }` in ruby?
<headius[m]> without an explicit Ruby Mutex object, I assume
<jmalves> Yes
<headius[m]> there's nothing built-in unfortunately
<jmalves> Ok, I guess one can always have a java helper method that can be called from ruby that does this so it is not a big deal
<headius[m]> I have thought about adding something that would let you use the built-in object monitor, like say "JRuby.synchronized(object) { }"
<headius[m]> yah basically that
<headius[m]> we have a couple similar things to allow using JVM locking but have never really promoted them in favor of using compatible options
<headius[m]> there is a way to do it for a whole object but it's via a module
<headius[m]> require 'jruby'; obj.extend(JRuby::Synchronized) basically makes all method lookups get wrapped with synchronization against the object
<headius[m]> but extend has its problems, and of course this does it for EVERY method call to that object
<headius[m]> I like the idea of adding JRuby.synchronize or synchronized
<jmalves> Does this `obj.extend(JRuby::Synchronized)` also synchronize from the java side?
<headius[m]> that's all it does
<headius[m]> it just injects some code into method lookup that wraps "my method" with "synchronized(thatObject) { myMethod.call }"
<headius[m]> basically
<jmalves> ah ok
<jmalves> If there was such a "JRuby.synchronize" or "synchronized" how would it work if someone passed a ruby object and not a java one to it?
ur5us has joined #jruby
<headius[m]> Ruby objects are Java objects
<headius[m]> this would basically add the functionality
<headius[m]> it would probably make sense to also add "wait" and "notify"
<jmalves> Ok right
ur5us has quit [Ping timeout: 260 seconds]
<headius[m]> so weird, I must have used "synchronized" thousands of times in Java and yet I just had to double check it's synchronized(object) and not synchronize(object)
<jmalves> Unrelated but I have the same thing with "git --ammend" vs "git --amend" never remember which is the correct one :X
<headius[m]> hah yeah similar
ur5us has joined #jruby
<headius[m]> it will need some tests, so if you feel like it you might make some
drbobbeaty has joined #jruby
subbu has quit [Ping timeout: 265 seconds]
michael_mbp has quit [Ping timeout: 265 seconds]
subbu has joined #jruby
michael_mbp has joined #jruby
ur5us has quit [Ping timeout: 260 seconds]
justinmcp has joined #jruby
_Caerus has joined #jruby
Caerus has quit [Ping timeout: 246 seconds]
lanceball has quit [Ping timeout: 246 seconds]
adam12 has quit [Ping timeout: 264 seconds]
lanceball_ has joined #jruby
justinmcp_ has quit [Ping timeout: 264 seconds]
adam12 has joined #jruby
adam12 is now known as Guest99545
nirvdrum has joined #jruby
<JasonRogers[m]> > if you haven't already I'd open an issue and give us something to repro
<JasonRogers[m]> Thanks, @headius. I'll try to reproduce the problem in a similar fashion that isn't tied to the company's IP.
Guest99545 is now known as adam12
adam12 has joined #jruby
adam12 has quit [Changing host]
jmalves has quit [Remote host closed the connection]
Antiarc has quit [Ping timeout: 265 seconds]
Antiarc has joined #jruby
jmalves has joined #jruby
jmalves has quit [Ping timeout: 240 seconds]
jmalves has joined #jruby
subbu is now known as subbu|lunch
jmalves has quit [Ping timeout: 265 seconds]
subbu|lunch is now known as subbu
ur5us has joined #jruby
<headius[m]> perfect
snickers has joined #jruby
jmalves has joined #jruby
jmalves has quit [Ping timeout: 256 seconds]
drbobbeaty has quit [Ping timeout: 252 seconds]
nirvdrum has quit [Ping timeout: 265 seconds]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
den_d has quit [Ping timeout: 256 seconds]
Liothen has quit [Ping timeout: 260 seconds]
<headius[m]> well we have a conundrum
<headius[m]> our caching of jar contents is not safe across multiple runtimes, but we store the caches globally
lopex has quit [Ping timeout: 272 seconds]
fidothe has quit [Ping timeout: 272 seconds]
Iambchop has quit [Ping timeout: 260 seconds]
lopex_ has joined #jruby
den_d has joined #jruby
Iambchop has joined #jruby
fidothe has joined #jruby
Liothen has joined #jruby
lopex_ is now known as lopex
jmalves has joined #jruby
jmalves has quit [Ping timeout: 272 seconds]
nirvdrum has joined #jruby