Re[2]: PANIC: unprotected error...

  • From: vostrikov <vostrikov@xxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 22 Jul 2015 16:09:03 +0300

Среда, 22 июля 2015, 16:04 +03:00 от Egor Skriptunoff
<egor.skriptunoff@xxxxxxxxx>:


    local function loop()
        local last = {next=false}
        while true do
            last.next = {next=false}
            last = last.next
        end
    end

    loop()

Yes, this code may lead to "PANIC: unprotected error..."
There is no memory leak in this code, therefore it should fail with
out-of-memory error.

Other related posts:

  • » Re[2]: PANIC: unprotected error... - vostrikov