Patch title: Release 85 bulk changes
Abstract:
File: /pliant/language/context/memory.pli
Key:
    Removed line
    Added line
   
scope "/pliant/language/" "/pliant/install/"
scope "/pliant/language/" "/pliant/install/"
module "/pliant/install/ring3.pli"
module "/pliant/install/ring2.pli"
module "/pliant/appli/database/light.pli"


public
  constant memory_physical test_memory
module "/pliant/appli/database/light.pli"


public
  constant memory_physical test_memory
  gvar Intn memory_assigned := shunt memory_physical>0 memor
  gvar Int memory_assigned := shunt memory_physical>0 memory_physical\4 32*2^20
  gvar Int memory_overflow := undefined

function test_assigned
  if (data_read "security:/this_computer.pdb" "/env/pliant/m
    memory_assigned := m*2n^20  

function test_assigned
  if (data_read "security:/this_computer.pdb" "/env/pliant/m
    memory_assigned := m*2n^20  
  if (data_read "security:/this_computer.pdb" "/env/pliant/memory/overflow" (var Int m))=success
    memory_overflow := m*2^20  
test_assigned
test_assigned


function no_overflow_control
  void
entry_root addressof:(the_function no_overflow_control)

function memory_overflow_control
  if memory_overflow=defined and memory_current_consumed>memory_overflow
    pliant_memory_post_extend_hook := (the_function no_overflow_control) executable
    memory_sem release
    error error_id_starvation "too much memory consumed"
    memory_sem request
entry_root addressof:(the_function memory_overflow_control)

pliant_memory_post_extend_hook := (the_function memory_overflow_control) executable