Branch: Tag:

2019-10-16

2019-10-16 08:58:31 by Marcus Comstedt <marcus@mc.pp.se>

Thread.ResourceCountKey: Make destruct immediate

4820:    return;    }    -  /* Propagate the HAS_C_METHODS and CLEAR_STORAGE flags. */ -  if (p->flags & (PROGRAM_HAS_C_METHODS|PROGRAM_CLEAR_STORAGE)) { +  /* Propagate the HAS_C_METHODS, CLEAR_STORAGE and DESTRUCT_IMMEDIATE flags. */ +  if (p->flags & (PROGRAM_HAS_C_METHODS|PROGRAM_CLEAR_STORAGE|PROGRAM_DESTRUCT_IMMEDIATE)) {    Pike_compiler->new_program->flags |= -  (p->flags & (PROGRAM_HAS_C_METHODS|PROGRAM_CLEAR_STORAGE)); +  (p->flags & (PROGRAM_HAS_C_METHODS|PROGRAM_CLEAR_STORAGE|PROGRAM_DESTRUCT_IMMEDIATE));    }       /* parent offset was increased by 42 for above test.. */