Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/debugtools/DDR_VM/zos_address_space_packer/readme.txt
5990 views
1
# Copyright (c) 2010, 2017 IBM Corp. and others
2
#
3
# This program and the accompanying materials are made available under
4
# the terms of the Eclipse Public License 2.0 which accompanies this
5
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
6
# or the Apache License, Version 2.0 which accompanies this distribution and
7
# is available at https://www.apache.org/licenses/LICENSE-2.0.
8
#
9
# This Source Code may also be made available under the following
10
# Secondary Licenses when the conditions for such availability set
11
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
12
# General Public License, version 2 with the GNU Classpath
13
# Exception [1] and GNU General Public License, version 2 with the
14
# OpenJDK Assembly Exception [2].
15
#
16
# [1] https://www.gnu.org/software/classpath/license.html
17
# [2] http://openjdk.java.net/legal/assembly-exception.html
18
#
19
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
20
21
zOS Address Space Packer
22
23
This tool allows you to spawn multiple enclaves inside a single address space.
24
25
An enclave is a command, some native libraries and a LE environment (your own
26
malloc chains etc.) - it's similar to a UNIX process but it can share an
27
address space.
28
29
Instructions:
30
31
Build:
32
33
c89 multi_as.c
34
35
Put your commands into a text file, one per line. The tool is fairly dumb and
36
assumes that space splits commands (it doesn't understand quotes).
37
38
See checked in commands.txt as an example.
39
40
Run it:
41
42
./a.out commands.txt
43
44
The commands you've specified will start and share the console. The application
45
will stay open until all the child processes terminate (or are terminated).
46
47