https://kotlinlang.org logo
Title
o

orangy

02/22/2017, 7:31 PM
Isn’t it a memory leak with OOM?
g

groostav

02/22/2017, 7:36 PM
orangy: whats OOM? Is there something I can do to make kotlinc's life easier?
o

orangy

02/22/2017, 7:37 PM
OutOfMemoryException 🙂
g

groostav

02/22/2017, 7:38 PM
oh lol
but yeah thats what its looking like
the code generated appears to have some kind of nasty complexity between the number of recievers deep it is
if you look at the second chunk of the generated code its a wall of
$LOCALVARIABLE
asm stuff, far more than I would think necessary to run the relatively small block of source code its generating for
but that could be a misnomer, I've never written a line of jbc by hand and Im certainly no expert
o

orangy

02/22/2017, 8:26 PM
you could minimize it down to some repro and submit an issue, we will look
g

groostav

02/22/2017, 10:50 PM
you dont think the gist i uploaded has enough information?
it reads to me like somebody's written an O(n^2) memory complexity component in code with reciever lambda's
o

orangy

02/22/2017, 11:00 PM
Gist doesn't have an "assignee field" ;)
kotl.in/issue is where team works, so we ask to put requests there.
g

groostav

02/22/2017, 11:33 PM
alright well ill throw what I have up there
I really don't want to wrangle this down to an SSCCE because im pretty sure thats going to involve a lot of aggressive tuning of the JVM and its memory
run it with a max heap of 1MB
kind''ve thing
o

orangy

02/22/2017, 11:38 PM
Post here a link when you're done
g

groostav

02/22/2017, 11:54 PM
Can I ask somebody at JB to take a cursory look at this for me? Its a real pain in the ass and my only current solution is to drop the relevant file from the build process.
o

orangy

02/23/2017, 9:39 PM
You already asked by submitting an issue. It was assigned to a developer and he will take a look.