update apply shared mem library