Revert "Revert "memory window""

This reverts commit f21314718662a59399b2e432a385e4a7cc346e28.