Distributable runtime snapshots
By adopting distributable runtime snapshot technology in SaaS applications, the problem of unstable startup experience and resource waste when distributing cloud applications is solved, achieving fast and stable application startup and efficient resource utilization.
Patent Information
- Application Number
- CN202311502487.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-04-27
- Filing Date
- 2023-11-10
- Publication Date
- 2024-10-01
AI Technical Summary
When existing SaaS applications are distributed in the cloud, they suffer from unstable startup experience, waste of resources, and suboptimal performance, mainly due to network dependence and repeated parsing and compilation that lead to high resource usage on the client computing system.
Using distributable runtime snapshot technology, the cloud service computing system provides client computing systems with application snapshots instead of source code, thereby storing and initializing the runtime locally, reducing network dependencies and repeated parsing and compilation, and optimizing the runtime configuration to match Client hardware capabilities.
It significantly improves application startup speed and user experience, saves network transmission time and client computing system resources, and achieves startup performance similar to native applications.
Smart Images

Figure CN118733103A_ABST
Abstract
Description
Background Art
[0001] This application claims the benefit of priority under 35 U.S.C. §119(e) to PCT International Application Serial No. PCT / CN2023 / 085409, entitled “Distributable Runtime Snapshots,” filed on March 31, 2023. The above application is incorporated herein by reference in its entirety.
[0002] Software as a Service (SaaS) is a cloud-based service that provides applications to users on demand. The distribution of SaaS applications may differ from the traditional software distribution model, in which applications are compiled into various binary files, each of which is executable on a specific platform, and the appropriate binary files are distributed to end users via pre-installation of binaries on computing devices or by downloading binaries over a network. In the SaaS distribution model, the cross-platform source code of the SaaS application may be distributed to the end user, and the end user's client computing system compiles the distributed source code into machine code that can be executed by the client computing system. BRIEF DESCRIPTION OF THE DRAWINGS
[0003] Figure 1 An example cloud-based application distribution model based on distribution of application source code is illustrated.
[0004] Figure 2 An example cloud-based application distribution model based on distribution of application snapshots is illustrated.
[0005] Figure 3 An example application snapshot distribution model that is compatible with application source code distribution is illustrated.
[0006] Figure 4 is a block diagram of an example client computing system for bringing an application from an application snapshot into a ready-to-serve state.
[0007] Figure 5 is a block diagram of an example cloud service computing system for generating an application snapshot.
[0008] Figure 6 is an example method for generating and providing application snapshots.
[0009] Figure 7 is an example method of receiving an application snapshot and executing an application associated with the application snapshot.
[0010] Figure 8 is a block diagram of an example computing system within which the techniques described herein may be utilized.
[0011] Fig. 9 is a block diagram of an example processor unit for executing computer-executable instructions as part of implementing the techniques described herein. DETAILED DESCRIPTION
[0012] Cloud-based services continue to gain popularity in both the private and enterprise sectors. These services are designed to provide easy and affordable access to applications and resources without the need for internal infrastructure or hardware on the part of the end user. One type of cloud service is called Software as a Service (SaaS), which provides applications to users over a network (usually the Internet). Applications provided by SaaS are usually distributed to end users in the form of cross-platform (or portable) source code, which the end user's client computing system compiles into executable machine code (binary files) that can be executed by the end user's client computing system. This is different from the distribution of native applications in various computing system platforms, in which the application developer makes various binaries of the application available, each executable by a specific computing system platform, and the end user downloads the appropriate binary for their platform, or the application is pre-installed on the end user's client device. The SaaS platform-agnostic approach extends to other cloud-based services and allows users to store, access, share and protect data in the cloud regardless of the platform and / or operating system they may be using.
[0013] Figure 1An example cloud-based application distribution model based on the distribution of application source code is illustrated. Model 100 includes a cloud service computing system 102 in communication with a client computing system 110. In response to a request from the client computing system 110 for an application that can be used as a cloud service, the cloud service computing system 102 distributes source code 104 for the application to a client runtime (or scripting engine) 108, such as a Chrome runtime, operating on the client computing system 110. The source code 104 can be in a cross-platform source code format, such as JavaScript (.js) or a WebAssembly text format (.wat). Compilation of the source code 104 by the compiler 112 includes parsing the source code 104 by a parser 116, generating bytecode 120 by a bytecode generator 124, and compiling the bytecode 120 into machine code 132 executed by the client computing system 110 by a JIT (just-in-time) compiler 128. The JIT compiler 128 utilizes the profile data 138 representing the performance of the machine code 132 executed on the client computing system 110 to determine whether portions of the bytecode 120 are to be recompiled by the JIT compiler 128 to generate recompiled machine code 132 that is more optimized for the client computing system platform to improve application performance. The bytecode 120 and the machine code 132 are part of the managed heap 136 of the client runtime, which also includes the heap application objects 140 generated during the execution of the machine code 132.
[0014] Figure 1 The application code distribution model shown in may be affected by one or more of the following disadvantages. First, due to network issues, the startup experience may be slow and unpredictable. The startup time of native applications pre-installed on the end-user client computing system is predictable and relatively short, depending on the hardware capabilities of the end-user client computing system. However, for each launch of the application, a cloud service such as a SaaS application needs to be requested over the network, which means that the client-side startup experience of the SaaS application may be highly dependent on the network quality. Therefore, when the network quality is poor and / or the size of the SaaS application source code is large, the user experience may be affected.
[0015] Second, client computing system resources may be wasted due to repeated parsing and compilation of application source code. Figure 1After the source code 104 arrives at the client computing system 110, the source code 104 needs to be parsed and compiled by the client runtime's parser 116 and bytecode generator 124 before it can be executed. If a user opens multiple runtime sessions (e.g., Chrome tabs) to request the same cloud service (e.g., office productivity application), the client computing system 110 repeatedly requests, parses, and compiles the same application source code 104. Repeatedly parsing and compiling the same source code may be a waste of client computing system resources.
[0016] Third, using the same client runtime configuration for various applications can result in suboptimal application performance. The client runtime 108 has its own managed heap 136 to service the execution of applications and isolate the execution of applications from the cloud service computing system 102. The heap 136 is typically created and initialized before an application is requested from the cloud service computing system 102. Therefore, the client runtime 108 may lack knowledge of the requested application and service various types of cloud service applications with the same client runtime configuration. This may result in suboptimal runtime performance for a group of cloud service applications running on multiple identical client runtimes on the client computing system 110.
[0017] Various methods have been used to try to address these deficiencies, but these methods may have their own disadvantages. First, some existing browsers use local storage devices to store the source code and corresponding bytecodes of scripts running on a web page so that users can reuse them when they visit the web page in the future. Local storage of source code and bytecodes can reduce the startup time of frequently visited websites. However, local storage of web page scripts and bytecodes is subject to storage limitations. For example, the V8 JavaScript engine may only cache the bytecodes of top-level functions, and due to garbage collection heuristics, some of these bytecodes may be dumped before local storage.
[0018] Second, startup snapshots can be used to reduce the startup time of runtimes that may incur a large startup burden. For example, the V8 JavaScript engine needs to set up its global objects and all its built-in functions (e.g., math functions, regular expression engine) in its heap every time a new runtime context is created. The use of the startup snapshot mechanism deserializes a previously prepared V8 JavaScript engine snapshot directly into the heap, saving the startup time of creating a runtime context from scratch. The startup snapshot is determined and created by a script engine embedder such as Chrome. The embedder can add additional library scripts to the snapshot to speed up the startup of the embedder application. However, the runtime startup snapshot still lacks information about applications that the user may want to download from the cloud.
[0019] Third, the JIT compiler can use the knowledge of how the machine code is executed on the client computing system to recompile the part of the executing machine code to improve the code performance, thereby allowing the client computing system to execute the machine code of the application, which is more optimized than the machine code compiled before the application execution at the client computing system. Dynamic scripting languages such as JavaScript must be interpreted or compiled by the runtime (or script engine) on the fly. The runtime needs to handle many dynamics caused by the nature of the dynamic language (such as the type of variables, the signature of the function, etc.), which is a bottleneck for runtime performance. Therefore, modern scripting engines can apply multi-layer compiler technology to profile the characteristics of the runtime workload during low-level execution (bytecode execution) and layer hot functions (those frequently executed functions) to the JIT compiler with a profile to guide the implementation of speculative optimization. The JIT profile is critical to the runtime performance of dynamic scripting languages, but the runtime configuration is usually determined at runtime startup, which is before the JIT profile is available. Therefore, the runtime has no available hints to customize its configuration for the specific cloud service application it is about to execute.
[0020] Disclosed herein is a distributable runtime snapshot. A cloud service computing system can run an application before a client computing system requests the application and create a snapshot of a specific runtime context for the application. A cloud service provider can provide a snapshot of an application (application snapshot) to a client computing system instead of distributing source code to a requesting client computing system. The client computing system can initialize the runtime based on the received application snapshot and pick up the execution of the application from the execution state captured by the snapshot. The client computing system can store the received application snapshot locally, and when the user requests a cloud-based application associated with the locally stored application snapshot next time, the client computing system can retrieve the application snapshot and use it to initialize a new runtime for executing the application. A cloud service provider can generate multiple snapshots that can be used for a specific application, wherein various snapshots represent, for example, applications executed to different execution states and / or applications executed under different runtime configurations. The runtime configuration and / or execution state of various snapshots can be based on user requests, user feedback, or a cloud service provider can determine a set of predetermined runtime configurations or execution states that may be requested by an end user or applicable to an end user.
[0021] The distributable runtime snapshot disclosed herein can improve the end-user experience by providing fast and stable startup for SaaS applications. For example, for the same application, the snapshot file may be smaller than the source code file (the V8 JavaScript startup snapshot is about 30% smaller than the corresponding source code), which saves network transmission time. In addition, initializing the runtime based on the snapshot (snapshot deserialization) is faster than compiling and executing the corresponding source code. For example, the V8 JavaScript snapshot deserialization time is about 20 times faster than the compilation and execution time of the equivalent source code. In addition, launching the application by deserializing the locally stored snapshot does not incur the time penalty of having to receive the application snapshot over the network, which can result in a user experience close to the startup time of the native application. In addition, using a locally stored snapshot to launch the application can save client computing system power consumption by avoiding redundant parsing and compilation when the user makes a request for the application in the future. In addition, the cloud service provider can utilize the runtime capabilities of the client computing system by generating a snapshot under a runtime configuration that matches the capabilities of the client system.
[0022] In the following description, specific details are set forth, but embodiments of the technology described herein may be implemented without these specific details. Well-known circuits, structures, and techniques are not shown in detail to avoid obscuring the understanding of this description. Phrases such as "an embodiment," "embodiments," "some embodiments," etc. may include features, structures, or characteristics, but not every embodiment necessarily includes these specific features, structures, or characteristics.
[0023] Some embodiments may have some or all of the features described for other embodiments, or may not have these features at all. "First", "second", "third", etc. describe common objects, and indicate different instances of similar objects being referenced. Such adjectives do not imply that the objects described in this way must be in a given order in time or space, in order or in any other way. "Connected" may indicate that elements are in direct physical or electrical contact with each other, and "coupled" may indicate that elements cooperate or interact with each other, but these elements may or may not be in direct physical or electrical contact. In addition, the terms "comprising", "including", "having", etc. as used with respect to the embodiments of the present disclosure are synonymous.
[0024] In the following description, for the purpose of explanation, numerous specific details are set forth in order to provide a thorough understanding of the description. However, it will be apparent that novel embodiments may be implemented without these specific details. In other examples, a plurality of well-known structures and devices are shown in block diagram form to facilitate the description of these structures and devices. It is intended to encompass all modifications, equivalents, and alternatives within the scope of the claims.
[0025] As used herein, the term "integrated circuit assembly" refers to a packaged or unpackaged integrated circuit product. A packaged integrated circuit assembly includes one or more integrated circuit dies mounted on a package substrate, wherein the integrated circuit die and the package substrate are packaged in a housing material such as metal, plastic, glass, or ceramic. In one example, a packaged integrated circuit assembly includes one or more processor units mounted on a substrate, wherein the outer surface of the substrate includes a solder ball grid array (BGA). In one example of an unpackaged integrated circuit assembly, a single monolithic integrated circuit die includes solder bumps attached to contacts on the die. The solder bumps allow the die to be directly attached to a printed circuit board. The integrated circuit assembly may include one or more computing system components in any computing system component described or referenced herein or any other computing system component, such as a processor unit (e.g., a system-on-a-chip (SoC), a processor core, a graphics processor unit (GPU), an accelerator, a chipset processor), an I / O controller, a memory, or a network interface controller.
[0026] As used herein, the terms "operate," "execute," or "run" are used interchangeably when referring to software or firmware associated with a system, device, platform, or resource, and may refer to software or firmware stored in one or more computer-readable storage media accessible by a system, device, platform, or resource, even if the software or firmware instructions are not being actively executed by the system, device, platform, or resource.
[0027] Reference is now made to the accompanying drawings, which are not necessarily drawn to scale, wherein similar or identical numbers may be used to indicate the same or similar parts in different figures. The use of similar or identical numbers in different figures does not mean that all figures including similar or identical numbers constitute a single or identical embodiment. The same numbers with different letter suffixes may represent different instances of similar components. In general, the drawings illustrate the various embodiments discussed in this document by way of example and not by way of limitation.
[0028] Figure 2An example cloud-based application distribution model for distribution based on application snapshots is illustrated. Model 200 includes a cloud service computing system 202 in communication with a client computing system 206. In some embodiments, the client computing system 206 is a computing system that communicates with the cloud service computing system 202 through one or more networks, and therefore, the systems can be considered remote from each other. The cloud service computing system 202 includes a cloud runtime 204 that generates one or more snapshots 208 of an application. To generate the snapshots 208, the cloud service computing system 202 utilizes the cloud runtime 204 to execute an application having source code 214 and execute the application to an execution state.
[0029] The compiler 216 of the cloud runtime 204 includes a parser 222 and a bytecode generator 226, which do not tier the hot functions of the application into the JIT compiler to generate machine code that is more optimized to run on the cloud service computing system 202. Instead, the execution of the application stays at the bytecode 230 generated by the bytecode generator 226. Because the snapshot 208 can be distributed to client computing systems 206 with different hardware platforms, portable bytecode is included in the snapshot 208. The serializer 234 generates the application snapshot 208 by serializing the bytecode 230 and heap objects 238 created during the execution of the application and stored by the cloud runtime 204 in the managed heap 242. The serializer 234 further serializes the state of the heap object 238 in the execution state to be included in the application snapshot 208.
[0030] During the execution of the application by the cloud runtime 204, the managed heap 242 grows as the application creates and uses more application objects. The heap objects 238 include these application objects as well as application objects created by the cloud runtime 204 before the application is executed. The execution state at which the cloud runtime 204 stops the execution of the application and is reflected in the application snapshot can be a predetermined execution state or a dynamically determined execution state determined by the cloud runtime 204 when executing the application. The predetermined execution state can be defined by, for example, the cloud runtime 204 executing the application based on a set of inputs specified in an input file. The dynamically determined execution state can be determined by the cloud runtime 204 determining that the execution of the application has reached a stable state, which the cloud runtime 204 can determine by, for example, no new heap objects are generated within a threshold amount of time and / or a threshold percentage of the bytecode 230 has been executed. Once the execution of the application has reached the (predetermined or dynamically determined) execution state, the serializer 234 generates a snapshot 208 and serializes the heap objects 238 and the bytecode 230 into a runtime snapshot (or application snapshot 208).
[0031] Snapshot 208 may include bytecode 230 or (if, for example, serializer 234 encrypts or compresses the bytecode) information from which bytecode 230 can be derived, as well as information indicating application objects created before or during execution of the bytecode, and object state information indicating the state of each application object when executed.
[0032] In some embodiments, a user may request an application snapshot of an application executed to a specific execution state. The cloud service computing system 202 may receive the requested execution state of the application in the request from the client computing system 206, and the requested execution state may be used as a predetermined execution state for generating the application snapshot 208. The requested execution state may be defined by, for example, a threshold of heap objects created and / or a threshold of bytecode of the application that has been executed. Alternatively, the requested execution state may be defined by an input command set supplied by the client computing system, which is to be fed to the application by the cloud service computing system 202 during the execution of the application for snapshot generation purposes.
[0033] In some embodiments, the cloud service computing system 202 can receive user feedback about whether the execution state reflected in the application snapshot is sufficiently stable. If not, the cloud service computing system 202 can provide an application snapshot 208 reflecting a different execution state in response to a future request for the application. The different execution state can be, for example, a state in which more heap objects have been generated and / or more bytecodes have been executed relative to the execution state indicated by the user feedback as being insufficiently stable. In some embodiments, as discussed in more detail below, the cloud service computing system 202 can provide application source code instead of an application snapshot in response to receiving user feedback that the application snapshot is not associated with a stable execution state of the application.
[0034] In some embodiments, the serializer 234 may further serialize runtime configuration settings 246 that specify one or more settings of the cloud runtime 204 in which the application is executed to generate a particular snapshot 208, and include the serialized configuration settings 246 in the snapshot. In some embodiments, the application may be executed by the cloud runtime 204 under a plurality of different runtime configuration settings 246 to generate a plurality of snapshots 208. In some embodiments, a request for an application from a client computing system 206 may include one or more runtime configuration settings under which the application is to be executed at the client computing system 206, and the cloud service computing system 202 may distribute a snapshot 208 having runtime configuration settings that match (or most closely match) the client runtime settings in the request.
[0035] In other embodiments, runtime configuration settings 246 may be determined by cloud runtime 204 as it executes the application. That is, runtime configuration settings 246 may include runtime settings that have been tuned by cloud runtime 204 during execution of the application to improve application runtime performance. These cloud runtime-determined runtime configuration settings may be serialized in snapshot 208, and client computing system 206 may set its client runtime settings to match those provided in received snapshot 208.
[0036] Examples of runtime configuration settings that can be included in a snapshot include: heap garbage collection heuristics (or garbage collection settings, such as information indicating what type of garbage collection algorithm to use and settings for the garbage collection algorithm), multi-tier compiler tiering settings (e.g., the amount of code that can be compiled by the JIT compiler to improve code performance), memory configuration settings (e.g., the amount of memory allocated to an application), and function inlining (function expansion) heuristics (or function inlining settings, such as the maximum size of a function to be inlined).
[0037] Serializer 234 may use any method to convert the heap objects, bytecodes, and configuration settings into a format that can be distributed as a data stream to client computing systems.
[0038] In response to receiving a request for an application from a client computing system 206, the cloud services computing system 202 may provide an application snapshot associated with the application to the client computing system 206. The request from the client computing system 206 may indicate the requested application without indicating whether the cloud services computing system 202 is to provide an application snapshot or application source code. In some embodiments, as described above, the application request from the client computing system 206 may include one or more requested runtime configuration settings and / or an application execution state for which an application snapshot is to be provided. In some embodiments, the cloud services computing system 202 may distribute a snapshot 208 generated in the cloud runtime 250 that reflects an execution state that matches (or most closely matches) the requested execution state.
[0039] After receiving the application snapshot 208 at the client computing system 206, the embedder of the client runtime 210 first reads any runtime configuration from the snapshot 208 and then starts the runtime process with these configurations. Instead of initializing the heap to a blank context, the heap 254 is populated (e.g., by the deserializer 256 operating on the received snapshot 208) with the heap objects 262 described by the snapshot 208 and the bytecode 266 contained in the snapshot 208. The deserializer places the heap objects 262 in a state that the objects were in when the execution of the application at the cloud service computing system 202 reached the execution state based on the object state information in the snapshot. After populating the managed heap 254, the application is in a ready-to-serve state without the client computing system 206 having to parse and compile the application source code. Once the application is operating in the client runtime 250, the JIT compiler 270 can compile portions of the bytecode 266 based on the information 274 indicating the performance of the bytecode 266 to generate machine code 278 that is more optimized for performance on the client computing system 206. In some embodiments, the client runtime 250 may include a parser and bytecode generator for generating bytecode 266 for a portion of an application provided in a source code format in response to an application request.
[0040] In some embodiments, the client computing system 206 can store the received snapshot 208 in a local memory or storage device 282. The local memory or storage device 282 can be any computing system memory or storage device, such as any non-volatile memory or storage device (e.g., flash memory, solid-state drive, disk, or tape drive). If a user requests a cloud application that stores a snapshot locally, the client computing system 206 can load the snapshot from the local storage device. This can provide a stable application launch experience because the application launch will not be affected by, for example, network issues. In some embodiments, the client computing system 206 can perform staleness verification on the requested snapshot of the application to ensure that the snapshot is not out of date.
[0041] As described above, the advantages of the cloud service computing system providing the application snapshot rather than the application source code to the requesting client computing system include: replacing the parsing, compiling and executing of the application source code (to construct the heap objects of the application) to construct the initial state of the application with the initialization of the heap via the deserialization of the application snapshot. The time saved in launching the application for the first time on the client computing system is estimated to be similar to the time saved by deserializing the JavaScript V8 startup snapshot, which is about 10-20 times faster than launching the application through parsing, compiling and executing, depending on the complexity and size of the application source code.
[0042] Figure 3An example application snapshot distribution model compatible with application source code distribution is illustrated. Model 300 includes a cloud service computing system 304 in communication with a client computing system 308, wherein the cloud service computing system 304 determines whether to provide an application snapshot or application source code to the client computing system 308 in response to an application request from the client computing system 308. Beginning at 312 on the client computing system 308 side, a user requests a cloud service application. At 316, the client computing system 308 determines whether a snapshot of the requested application is stored locally at the client computing system 308. If so, at 316, the application snapshot is retrieved from local memory or storage, the snapshot is deserialized at 320, and the application is placed in a ready-to-serve state at 324. If not, at 328, the client computing system 308 sends an application snapshot request 330 to the cloud service computing system 304.
[0043] Jumping to the cloud service computing system 304 side, if the cloud service computing system 304 does not support application snapshots (332) or the application request from the client computing system 308 is a request for application source code instead of a snapshot (336), then at 340, the cloud service computing system 304 sends the application source code 348 to the client computing system 308. If the cloud service computing system 304 supports application snapshots (336) and the request is for application snapshots, then at 344, the cloud service computing system 304 sends the application snapshot 348 to the client computing system 308.
[0044] Returning to the client computing system 308 side, application source code or snapshot 348 is received from the cloud service computing system 304 at 352. If the file 348 received at 356 is an application snapshot, the snapshot is deserialized at 320. If the file 344 is application source code, the source code is parsed, compiled, and executed at 360. In either case, after deserialization of the application snapshot or parsing, compilation, and execution of the application source code, at 324, the application is in a ready-to-serve state.
[0045] In some embodiments, as described above, the cloud service computing system 304 can provide application source code instead of an application snapshot, even if the application snapshot is available. The cloud service computing system 304 can provide source code instead of an application snapshot, for example, in response to receiving feedback from a user who previously received an application snapshot that the execution state associated with the application snapshot is unstable.
[0046] In some embodiments, the cloud computing device can retrieve the first portion of the application from the local memory or storage device and receive the second portion of the application from the cloud service provider as source code or snapshot. If the client computing system receives the source code of the second portion of the application from the cloud service provider, the client computing system parses, compiles, and executes the source code, and deserializes the application snapshot of the first portion of the application to put the application in a ready-to-serve state. If the client computing system receives the application snapshot of the second portion of the application, the client computing system deserializes the application snapshots of the first portion and the second portion to put the application in a ready-to-serve state.
[0047] In some embodiments, a scenario may occur where the client computing system retrieves locally an application snapshot and source code for the first portion of the application or a snapshot of the second portion of the application, for example, when a first portion of the application is determined by the client computing system to be not out-of-date and a second portion of the application is determined to be out-of-date. The out-of-dateness determination of the portion of the application associated with the snapshot may be made by the client computing system and based on information in the application snapshot indicating, for example, a date or number of days since the cloud service provider provided the snapshot after which the respective portion of the application is considered out-of-date and a new snapshot of the portion of the application is to be retrieved from the cloud service provider.
[0048] Figure 4 is a block diagram of an example client computing system for bringing an application from an application snapshot into a ready-to-serve state. Computing device 400 includes: a parser module 410 and a bytecode generator module 412 for parsing and compiling application source code when a portion of the application is received from a cloud service provider in source code format; a JIT compiler module 416 for compiling portions of the application machine code during execution of the machine code; a runtime module 420 for creating and maintaining a runtime in which the application can execute; a deserialization module 424 for initializing a managed heap with compiled code and heap objects contained in an application snapshot or indicated by information contained in the application snapshot (the heap objects are placed in a state indicated by object information located in the snapshot); and a local memory or storage device 428 for storing the application snapshot.
[0049] Figure 5 is a block diagram of an example cloud service computing system for generating application snapshots. The cloud service computing system 500 includes: a parser module 510 and a bytecode generator module 512 for parsing and compiling application source code in application bytecode; a runtime module 516 for creating and maintaining a runtime in which the application can execute; and a serialization module 514 for creating application snapshots.
[0050] It should be understood that Figure 4-Figure 5The figure shows an example of a set of modules that can be included in a client computing system and a set of modules that can be included in a cloud service provider. Figure 4 The cloud service computing system may have more or fewer modules than those shown in FIG. Figure 5 More or fewer modules than those shown in .
[0051] Furthermore, separate modules can be combined into a single module, and a single module can be divided into multiple modules. Figure 4 Any of the modules shown in can be part of an operating system or hypervisor of the client computing device 400, one or more software applications independent of the operating system or hypervisor, or operate at another software layer; and Figure 5 Any of the modules shown in can be part of an operating system or hypervisor of the cloud service computing system 500, one or more software applications independent of the operating system or hypervisor, or operate at another software layer.
[0052] Figure 4-Figure 5 The modules shown in can be implemented in software, hardware, firmware or a combination thereof. A computer device that is said to be programmed to perform a method can be programmed to perform the method via software, hardware, firmware or a combination thereof.
[0053] Figure 6 is an example method for generating and providing an application snapshot. Method 600 may be performed by, for example, a server owned by a cloud service provider. At 604, at a first computing system, bytecode is generated from source code of an application. At 608, at the first computing system, the bytecode is executed to an execution state. At 612, at the first computing system, an application snapshot is generated at the first computing system, the application snapshot comprising: the bytecode; and object information indicating a plurality of objects created during execution of the bytecode; and object state information for each of the objects indicating a state of each of the objects in the execution state. At 616, at the first computing system, a request for an application is received from a second computing system. At 620, the application snapshot is provided from the first computing system to the second computing system.
[0054] In other embodiments, the method 600 may include one or more additional elements. For example, the method 600 may further include: executing bytecode in a second runtime configured according to one or more second runtime configuration settings at the first computing system; generating a second application snapshot at the first computing system, the second application snapshot including: bytecode or information from which bytecode can be generated; and second object information and second object state information for each of the objects, the second object information indicating a plurality of objects, the second object state information indicating a state of each object in response to executing the bytecode to an execution state in the second runtime; and providing the second application snapshot from the first computing system to the second computing system.
[0055] Figure 7 is an example method of receiving an application snapshot and executing an application associated with the application snapshot. Method 700 may be performed by, for example, a laptop computer. At 704, at a first computing system, an application snapshot is received from a second computing system, the application snapshot comprising: bytecode of the application or information from which the bytecode may be generated; and object information indicating a plurality of objects, and object state information for each of the objects, indicating a state of each of the objects in an execution state of the application. At 708, at the first computing system, the bytecode is deserialized into a managed heap for execution by the first computing system. At 712, at the first computing system, a managed heap is initialized with a plurality of application objects, each of the application objects being placed in a state indicated by the object state information of each of the application objects. At 716, at the first computing system, the application is executed from the execution state.
[0056] In other embodiments, the method 700 may include one or more additional elements. For example, the method 700 may further include: configuring the runtime in which the application is to be executed based on one or more configuration settings contained in the application snapshot. In another example, the method 700 may further include saving the application snapshot to a memory or storage device local to the first computing system. In yet another example, the method 700 may further include: at the first computing system, initializing a second heap in the second runtime with a plurality of objects and object states of each application object; and at the first computing system, executing a second instance of the application from the execution state in the second runtime via execution of the machine code.
[0057] The techniques described herein may be performed by or implemented in any of a variety of computing systems, including mobile computing systems (e.g., smartphones, handheld computers, tablet computers, laptop computers, portable game consoles, two-in-one convertible computers, portable all-in-one computers), non-mobile computing systems (e.g., desktop computers, servers, workstations, stationary game consoles, set-top boxes, smart televisions, rack-mounted computing solutions (e.g., blade, tray, or sled computing systems)), and embedded computing systems (e.g., computing systems that are part of vehicles, smart home appliances, consumer electronic products or equipment, manufacturing equipment). As used herein, the term "computing system" includes computing devices and includes systems that include multiple discrete physical components. In some embodiments, the computing system is located in a data center, such as an enterprise data center (e.g., a data center owned and operated by a company and typically located on the company's premises), a managed services data center (e.g., a data center managed by a third party on behalf of a company), a co-located data center (e.g., a data center in which the data center infrastructure is provided by a data center host and the company provides and manages its own data center components (servers, etc.)), a cloud data center (e.g., a data center operated by a cloud service provider that hosts the company's applications and data), and an edge data center (e.g., a data center that typically has a smaller footprint than other data center types and is close to the geographic area it serves)).
[0058] Figure 8 is a block diagram of an example computing system in which the techniques described herein may be implemented. Figure 8 The components shown in the figure can communicate with other components shown, but for ease of illustration, not all connections are shown. The computing system 800 is a multi-processor system including a first processor unit 802 and a second processor unit 804, which include a point-to-point (PP) interconnect. The point-to-point (PP) interface 802 of the processor unit 806 is coupled to the point-to-point interface 807 of the processor unit 804 via a point-to-point interconnect 805. It should be understood that Figure 8 Any or all of the point-to-point interconnects illustrated in the diagram may alternatively be implemented as a multi-drop bus, and Figure 8 Any or all of the buses shown in the figures may be replaced by point-to-point interconnects.
[0059] Processor units 802 and 804 include multiple processor cores. Processor unit 802 includes processor core 808, and processor unit 804 includes processor core 810. Processor cores 808 and 810 may be combined with the following Fig. 9 Computer executable instructions may be executed in a manner similar to that discussed or in other manners.
[0060] Processor units 802 and 804 further include cache memories 812 and 814, respectively. Cache memories 812 and 814 may store data (e.g., instructions) utilized by one or more components of processor units 802 and 804, such as processor cores 808 and 810. Cache memories 812 and 814 may be part of a memory hierarchy of computing system 800. For example, cache memory 812 may locally store data that is also stored in memory 816 to allow faster access to the data by processor unit 802. In some embodiments, cache memories 812 and 814 may include multiple cache levels, such as level 1 (L1), level 2 (L2), level 3 (L3), level 4 (L4), and / or other caches or cache levels. In some embodiments, one or more levels of cache memory (e.g., L2, L3, L4) may be shared between multiple cores in a processor unit or between multiple processor units in an integrated circuit assembly. In some embodiments, the last level of cache memory on an integrated circuit assembly may be referred to as a last level cache (LLC). One or more of the higher level cache levels (smaller and faster caches) in the memory hierarchy may be located on the same integrated circuit die as the processor core, and one or more of the lower cache levels (larger and slower caches) may be located on an integrated circuit die that is physically separated from the processor core integrated circuit die.
[0061] Although computing system 800 is shown as having two processor units, computing system 800 may include any number of processor units. Further, the processor unit may include any number of processor cores. The processor unit may take various forms, such as a central processing unit (CPU), a graphics processing unit (GPU), a general-purpose GPU (GPGPU), an accelerated processing unit (APU), a field-programmable gate array (FPGA), a neural network processing unit (NPU), a data processor unit (DPU), an accelerator (e.g., a graphics accelerator, a digital signal processor (DSP), a compression accelerator, an artificial intelligence (AI) accelerator), a controller or other types of processing units. Thus, the processor unit may be referred to as an XPU (or xPU). Further, the processor unit may include one or more of these different types of processing units. In some embodiments, the computing system includes a processor unit having multiple cores, and in other embodiments, the computing system includes a single processor unit having a single core. As used herein, the terms "processor unit" and "processing unit" may refer to any processor, processor core, component, module, engine, circuitry, or any other processing element described or referenced herein.
[0062] In some embodiments, computing system 800 may include one or more processor units that are heterogeneous or asymmetric with another processor unit in the computing system. There may be various differences between the processing units in the system in terms of a range of metrics including architecture, microarchitecture, thermal, power consumption characteristics, etc. These differences may effectively manifest themselves as asymmetry and heterogeneity between the processor units in the system.
[0063] Processor units 802 and 804 may be located in a single integrated circuit component (such as a multi-chip package (MCP) or a multi-chip module (MCM)), or they may be located in separate integrated circuit components. An integrated circuit component including one or more processor units may include additional components, such as embedded dynamic random access memory (DRAM), stacked high bandwidth memory (HBM), shared cache memory (e.g., L3, L4, LLC), input / output (I / O) controller, or memory controller. Any of the additional components may be located on the same integrated circuit die as the processor unit, or on one or more integrated circuit dies separate from the integrated circuit die including the processor unit. In some embodiments, these separate integrated circuit dies may be referred to as "chiplets". In some embodiments, where there is heterogeneity or asymmetry between processor units in a computing system, the heterogeneity or asymmetry may exist between processor units located in the same integrated circuit component. In embodiments where the integrated circuit assembly includes multiple integrated circuit dies, the interconnections between the dies may be provided by a package substrate, one or more silicon interposers, one or more silicon bridges embedded in the package substrate (such as, An embedded multi-die interconnect bridge (EMIB) or a combination of the above is provided.
[0064] Processor units 802 and 804 further include memory controller logic (MC) 820 and 822. Figure 8 As shown in FIG. 8 , MCs 820 and 822 control memories 816 and 818 coupled to processor units 802 and 804, respectively. Memories 816 and 818 may include various types of volatile memory (e.g., dynamic random access memory (DRAM), static random access memory (SRAM)) and / or non-volatile memory (e.g., flash memory, chalcogenide-based phase change non-volatile memory), and include one or more layers of the memory hierarchy of the computing system. Although MCs 820 and 822 are illustrated as being integrated into processor units 802 and 804, in alternative embodiments, the MCs may be external to the processor units.
[0065] Processor units 802 and 804 are coupled to an input / output (I / O) subsystem 830 via point-to-point interconnects 832 and 834. Point-to-point interconnect 832 connects a point-to-point interface 836 of processor unit 802 with a point-to-point interface 838 of I / O subsystem 830, and point-to-point interconnect 834 connects a point-to-point interface 840 of processor unit 804 with a point-to-point interface 842 of I / O subsystem 830. Input / output subsystem 830 further includes an interface 850 for coupling I / O subsystem 830 to a graphics engine 852. I / O subsystem 830 and graphics engine 852 are coupled together via bus 854.
[0066] The input / output subsystem 830 is further coupled to a first bus 860 via an interface 862. The first bus 860 may be a Peripheral Component Interconnect Express (PCIe) bus or any other type of bus. Various I / O devices 864 may be coupled to the first bus 860. A bus bridge 870 may couple the first bus 860 to a second bus 880. In some embodiments, the second bus 880 may be a low pin count (LPC) bus. Various devices may be coupled to the second bus 880, including, for example, a keyboard / mouse 882, an audio I / O device 888, and a storage device 890 (such as a hard drive, a solid state drive, or another storage device) for storing computer executable instructions (code) 892 or data. The code 892 may include computer executable instructions for performing the methods described herein. Additional components that may be coupled to the second bus 880 include (one or more) communication devices 884 that may provide communications between the computing system 800 and one or more wired or wireless networks 886 (e.g., Wi-Fi, cellular, or satellite networks) via one or more wired or wireless communications links (e.g., wires, cables, Ethernet connections, radio-frequency (RF) channels, infrared channels, Wi-Fi channels) using one or more communications standards (e.g., the IEEE 802.11 standard and its supplements).
[0067] In embodiments where the communication device 884 supports wireless communication, the communication device 884 may include a wireless communication component coupled to one or more antennas to support communication between the computing system 800 and external devices. The wireless communication component may support various wireless communication protocols and technologies, such as Near Field Communication (NFC), IEEE 802.11 (Wi-Fi) variants, WiMax, Bluetooth, Zigbee, 4G Long Term Evolution (LTE), Code Division Multiplexing Access (CDMA), Universal Mobile Telecommunication System (UMTS) and Global System for Mobile Telecommunication (GSM), and 5G broadband cellular technology. In addition, the wireless modem may support communication with one or more cellular networks for data and voice communication within a single cellular network, between cellular networks, or between the computing system and a public switched telephone network (PSTN).
[0068] The system 800 may include removable memory, such as a flash memory card (e.g., a SD (Secure Digital) card), a memory stick, a Subscriber Identity Module (SIM) card. The memory in the system 800 (including caches 812 and 814, memories 816 and 818, and storage device 890) may store data and / or computer executable instructions for executing an operating system 894 and application programs 896. Example data includes web pages, text messages, images, sound files, video data, application snapshots, application source code, or other data sets, which are sent to and / or received from one or more network servers or other devices by the system 800 via one or more wired or wireless networks 886, or for use by the system 800. The system 800 may also have access to external memory or storage devices (not shown), such as external hard drives or cloud-based storage.
[0069] Operating system 894 can control Figure 8896 and supports one or more applications 896. Applications 896 may include common computing system applications (e.g., email applications, calendars, contact managers, web browsers, messaging applications) and other computing applications such as parsers, bytecode generators, JIT compilers, serializers, and deserializers.
[0070] In some examples, a hypervisor (or virtual machine manager) operates on an operating system 894, and applications 896 operate within one or more virtual machines operating on the hypervisor. In these embodiments, the hypervisor is a type 2 or hosted hypervisor because it runs on the operating system 894. In other hypervisor-based embodiments, the hypervisor is a type 1 or "bare metal" hypervisor that runs directly on the platform resources of the computing system 894 without an intervening operating system layer.
[0071] In some embodiments, applications 896 may operate within one or more containers. A container is a running instance of a container image, which is an encapsulation of a binary image of one or more applications 896 and any libraries, configuration settings, and any other information required to execute the one or more applications 896. A container image may conform to any container image format, such as Appc or LXC container image format. In a container-based embodiment, a container runtime engine (such as Docker Engine, LXU, or an open container initiative (OCI)-compatible container runtime (e.g., Railcar, CRI-O)) operates on an operating system (or a hypervisor) to provide an interface between the container and the operating system 894. The orchestrator can be responsible for the management of the computing system 800 and various container-related tasks, such as deploying container images to the computing system 894, monitoring the performance of the deployed containers, and monitoring the utilization of the resources of the computing system 894.
[0072] The computing system 800 may support various additional input devices (such as a touch screen, microphone, camera, trackball, touchpad, trackpad, proximity sensor, light sensor) and one or more output devices (such as one or more speakers or displays). Any of these input devices or output devices may be internal to the system 800, external to the system 800, or removably attached to the system 800. External input devices and output devices may communicate with the system 800 via wired or wireless connections.
[0073] The system 800 may further include at least one input / output port, including a physical connector (e.g., USB, IEEE 1394 (Firewire), Ethernet, RS-232), a power source (e.g., a battery), a global satellite navigation system (GNSS) receiver (e.g., a GPS receiver); a gyroscope; an accelerometer; and / or a compass. The GNSS receiver may be coupled to a GNSS antenna. The computing system 800 may further include one or more additional antennas coupled to one or more additional receivers, transmitters, and / or transceivers to enable additional functionality.
[0074] It should be understood that Figure 8 The diagram illustrates only one example computing system architecture. The techniques described herein may be implemented using computing systems based on alternative architectures. For example, instead of processors 802 and 804 and graphics engine 852 being located on separate integrated circuits, the computing system may include a SoC (system on a chip) integrated circuit that includes multiple processors, graphics engines, and additional components. Further, the computing system may be implemented via a processor that is connected to the graphics engine 852. Figure 8 The bus or point-to-point configuration shown in FIG. is different from the bus or point-to-point configuration to connect its constituent components. Moreover, Figure 8 The illustrated components in are not required or all inclusive, as in alternative embodiments, illustrated components may be removed and other components added.
[0075] Fig. 9 900 is a block diagram of an example processor unit for executing computer-executable instructions as part of implementing the techniques described herein. Processor unit 900 may be a single-threaded core, or may be a multi-threaded core, embodying that each processor unit may include more than one hardware thread context (or "logical processor").
[0076] Fig. 9 Also shown is a memory 910 coupled to the processor unit 900. The memory 910 may be any memory described herein or any other memory known to those skilled in the art. The memory 910 may store computer executable instructions 915 (code) executable by the processor unit 900.
[0077] The processor unit includes front-end logic 920 that receives instructions from memory 910. Instructions may be processed by one or more decoders 930. Decoders 930 may generate micro-operations (such as fixed-width micro-operations in a predefined format) as their output, or may generate other instructions, micro-instructions, or control signals that reflect the original code instructions. Front-end logic 920 further includes register renaming logic 935 and scheduling logic 940, which generally allocate resources and queue operations corresponding to converting instructions for execution.
[0078] The processor unit 900 further includes an execution logic 950, which includes one or more execution units (EU) 965-1 to 965-N. Some processor unit embodiments may include several execution units dedicated to a specific function or a set of functions. Other embodiments may include only one execution unit or an execution unit that can perform a specific function. The execution logic 950 performs the operation specified by the code instruction. After completing the execution of the operation specified by the code instruction, the back-end logic 970 retires the instruction using the retirement logic 975. In some embodiments, the processor unit 900 allows out-of-order execution but requires orderly retirement of instructions. The retirement logic 975 can take various forms as known to those skilled in the art (e.g., reorder buffers, etc.).
[0079] Processor unit 900 is transformed during execution of instructions with respect to at least the output generated by decoder 930 , the hardware registers and tables utilized by register renaming logic 935 , and any registers (not shown) modified by execution logic 950 .
[0080] As used herein, the term "module" refers to a logic for performing one or more operations in accordance with the present disclosure that can be implemented using hardware components or devices, software or firmware running on a processor unit, or a combination thereof. Software and firmware can be embodied as instructions and / or data stored on a non-transient computer-readable storage medium. As used herein, the term "circuitry" can include, individually or in any combination, non-programmable (hard-wired) circuitry, programmable circuitry (such as a processor unit), state machine circuitry, and / or firmware storing instructions that can be executed by a programmable circuitry. The modules described herein can be embodied collectively or individually as circuitry forming part of a computing system. Thus, any module in a module can be implemented as a circuitry, such as a serializer circuitry and a deserializer circuitry. A computing system that is referred to as being programmed for executing a method can be programmed to execute the method via software, hardware, firmware, or a combination thereof.
[0081] Any disclosed method (or part thereof) can be implemented as computer executable instructions or computer program products. Such instructions can enable a computing system or one or more processor units that can execute computer executable instructions to perform any of the disclosed methods. As used herein, the term "computer" refers to any computing system, device or machine described or mentioned herein, and any other computing system, device or machine that can execute instructions. Thus, the term "computer executable instructions" refers to instructions that can be executed by any computing system, device or machine described or mentioned herein, and any other computing system, device or machine that can execute instructions.
[0082] Computer executable instructions or computer program products and any data created and / or used during the implementation of the disclosed technology may be stored on one or more tangible or non-transitory computer-readable storage media, such as volatile memory (e.g., DRAM, SRAM), non-volatile memory (e.g., flash memory, chalcogenide-based phase change non-volatile memory), optical media disks (e.g., DVD, CD), and magnetic storage (e.g., tape storage, hard drive). Computer-readable storage media may be contained in computer-readable storage devices such as solid-state drives, USB flash drives, and memory modules. Alternatively, any of the methods disclosed herein (or a portion thereof) may be performed by a hardware component including a non-programmable circuit system. In some embodiments, any of the methods herein may be performed by a combination of a non-programmable hardware component and one or more processing units that execute computer executable instructions stored on a computer-readable storage medium.
[0083] Computer executable instructions may be, for example, part of an operating system of a computing system, an application stored locally on a computing system, or a remote application accessible to a computing system (e.g., via a web browser). Any of the methods described herein may be performed by computer executable instructions, which are executed by a single computing system or by one or more networked computing systems operating in a network environment. Computer executable instructions and updates to computer executable instructions may be downloaded from a remote server to a computing system.
[0084] Further, it should be understood that implementation of the disclosed techniques is not limited to any particular computer language or program. For example, the disclosed techniques may be implemented by software written in C++, C#, Java, Perl, Python, JavaScript, Adobe Flash, C#, assembly language, or any other programming language. Likewise, the disclosed techniques are not limited to any particular computer system or any particular type of hardware.
[0085] In addition, any software-based embodiment (including, for example, computer-executable instructions for causing a computer to perform any of the disclosed methods) can be uploaded, downloaded, or remotely accessed via suitable communication means. Such suitable communication means include, for example, the Internet, the World Wide Web, an intranet, cables (including fiber optic cables), magnetic communications, electromagnetic communications (including RF, microwave, ultrasonic, and infrared communications), electronic communications, or other such communication means.
[0086] As used in the present application and claims, a list of items connected by the term "and / or" may mean any combination of the listed items. For example, the phrase "A, B, and / or C" may mean A; B; C; A and B; A and C; B and C; or A, B, and C. As used in the present application and claims, a list of items connected by the term "at least one of..." may mean any combination of the listed items. For example, the phrase "at least one of A, B, or C" may mean A; B; C; A and B; A and C; B and C; or A, B, and C. Moreover, as used in the present application and claims, a list of items connected by the term "one or more of..." may mean any combination of the listed items. For example, the phrase "one or more of A, B, and C" may mean A; B; C; A and B; A and C; B and C; or A, B, and C.
[0087] As used in this application and in the claims, the phrase "an individual of" or "each of" followed by a list of items recited or stated as having a feature, characteristic, etc. means that all of the items in the list have the recited or stated feature, characteristic, etc. For example, the phrase "an individual of A, B, or C includes a sidewall" or "A, B, or C each includes a sidewall" means that A includes a sidewall, B includes a sidewall, and C includes a sidewall.
[0088] The disclosed methods, apparatuses, and systems should not be construed as limiting in any way. Instead, the present disclosure is directed to all novel and non-obvious features and aspects of each disclosed embodiment, both individually and in various combinations and sub-combinations with each other. The disclosed methods, apparatuses, and systems are not limited to any particular aspect or feature or combination thereof, nor do the disclosed embodiments require the presence of any one or more specific advantages or the resolution of any one or more specific problems.
[0089] The theories of operation, scientific principles, or other theoretical descriptions presented herein with reference to the devices or methods of the present disclosure are provided for the purpose of better understanding and are not intended to limit the scope. The devices and methods in the appended claims are not limited to those devices and methods that function in the manner described by such theories of operation.
[0090] Although the operations of some of the disclosed methods are described in a particular, sequential order for ease of presentation, it should be understood that such a description encompasses rearrangements unless specific language set forth herein requires a particular ordering. For example, in some cases, operations described sequentially may be rearranged or performed simultaneously. Furthermore, for simplicity, the accompanying drawings may not show the various ways in which the disclosed methods may be used in conjunction with other methods.
[0091] The following examples pertain to additional embodiments of the techniques disclosed herein.
[0092] Example 1 includes a method, comprising: generating bytecode from source code of an application at a first computing system; executing the bytecode to an execution state at the first computing system; generating an application snapshot at the first computing system, the application snapshot comprising: the bytecode; and object information, the object information indicating a plurality of application objects created during the execution of the bytecode, and object state information for each of the application objects, the object state information indicating a state of each application object in the execution state; receiving a request for the application from a second computing system at the first computing system; and providing the application snapshot from the first computing system to the second computing system.
[0093] Example 2 includes the subject matter of Example 1, and wherein the request includes information indicating an execution state of the requested application, and providing the application snapshot is performed in response to the first computing system determining that the requested execution state matches the execution state.
[0094] Example 3 includes the subject matter of Example 1, and wherein the execution state is a first execution state, the application snapshot is a first application snapshot, and the object state information is first object state information indicating the state of each application object in the first execution state; the method further includes: at the first computing system, executing the bytecode to a second execution state; at the first computing system, generating a second application snapshot, the second application snapshot including: the bytecode or information from which the bytecode can be generated; and object information indicating multiple application objects, and second object state information for each of the application objects, the second object state information indicating the state of each application object in the second execution state; and providing the second application snapshot from the first computing system to the second computing system.
[0095] Example 4 includes the subject matter of Example 3, and further comprises: receiving information indicating a second execution state from a second computing system, executing the bytecode into the second execution state and generating a second application snapshot are performed in response to receiving the information indicating the second execution state.
[0096] Example 5 includes the subject matter of Example 1, and wherein executing the bytecode is performed in a runtime configured according to one or more runtime configuration settings, and the application snapshot further includes information indicating at least one runtime configuration setting of the one or more runtime configuration settings.
[0097] Example 6 includes the subject matter of Example 5, and wherein the runtime is a first runtime, the one or more runtime configuration settings are one or more first runtime configuration settings, the application snapshot is a first application snapshot, including first object state information indicating a state of the application object in response to executing the bytecode to an execution state in the first runtime, and the method further includes: executing the bytecode in a second runtime configured according to the one or more second runtime configuration settings at the first computing system; generating a second application snapshot at the first computing system, the second application snapshot including: the bytecode or information from which the bytecode can be generated; and object information indicating multiple application objects, and second object state information for each of the application objects, the second object state information indicating a state of the each application object in response to executing the bytecode to a second execution state in the second runtime; and providing the second application snapshot to the second computing system from the first computing system.
[0098] Example 7 includes the subject matter of Example 6, and wherein the request includes information indicating one or more requested runtime configuration settings, and providing the first application snapshot is performed in response to the first computing system determining that the one or more requested runtime configuration settings match the first runtime configuration settings.
[0099] Example 8 includes the subject matter of Example 5, and further comprises: receiving information indicating one or more second runtime configuration settings from the second computing system, executing the bytecode at the second runtime and generating the second application snapshot is performed in response to receiving the information indicating one or more second runtime configuration settings.
[0100] Example 9 includes the subject matter of any of Examples 5-8, wherein the one or more runtime configuration settings include a memory configuration setting.
[0101] Example 10 includes the subject matter of any of Examples 5-8, wherein the one or more runtime configuration settings include a heap garbage collection setting.
[0102] Example 11 includes the subject matter of any of Examples 5-8, wherein the one or more runtime configuration settings include a function inlining setting.
[0103] Example 12 includes the subject matter of any of Examples 5-8, wherein the one or more runtime configuration settings include a multi-tier compiler tiering setting.
[0104] Example 13 includes the subject matter of any of Examples 1-12, further comprising providing a portion of source code of the application from the first computing system to the second computing system.
[0105] Example 14 includes a method, comprising: at a first computing system, receiving an application snapshot from a second computing system, the application snapshot comprising: bytecode of the application or information capable of generating bytecode from it; and object information, the object information indicating a plurality of application objects, and object state information for each of the application objects, the object state information indicating a state of each of the application objects in an execution state of the application; at the first computing system, compiling the bytecode into machine code for execution by the first computing system; at the first computing system, initializing a runtime heap with the plurality of application objects, each of the application objects being placed in a state indicated by the object state information of each of the application objects; and at the first computing system, executing the application from the execution state via execution of the machine code at runtime.
[0106] Example 15 includes the subject matter of Example 14, and wherein receiving the application snapshot comprises receiving the application snapshot from a memory or storage device local to the first computing system.
[0107] Example 16 includes the subject matter of Example 14, and wherein the application snapshot is received from a second computing system.
[0108] Example 17 includes the subject matter of Example 16, and further comprising sending the request for the application from the first computing system to the second computing system.
[0109] Example 18 includes the subject matter of Example 17, and wherein the request includes information indicating an execution state of the application.
[0110] Example 19 includes the subject matter of Example 14, and wherein the application snapshot further comprises one or more runtime configuration settings, the method further comprising configuring a runtime in which the application is to be executed based on the one or more runtime configuration settings.
[0111] Example 20 includes the method of any one of Examples 14-19, further comprising: saving the application snapshot to a memory or storage device local to the first computing system.
[0112] Example 21 includes a computing system comprising: one or more processor units; and one or more computer-readable storage media storing computer-executable instructions that, when executed, cause the one or more processor units to perform a method as described in any of Examples 1-20.
[0113] Example 22 includes one or more computer-readable storage media storing computer-executable instructions that, when executed, cause the first computing system to perform the method of any of Examples 1-20.
[0114] Example 25 includes an apparatus comprising means for performing a method as described in any of Examples 1-20.
Claims
1. A method comprising: At a first computing system, generating bytecode from source code of an application; executing, at the first computing system, the bytecode into an execution state; At the first computing system, an application snapshot is generated, the application snapshot comprising: the bytecode; and object information indicating a plurality of application objects created during execution of the bytecode, and object state information for each of the plurality of application objects, the object state information indicating a state of each of the plurality of application objects under the execution state; receiving, at the first computing system, a request for the application from a second computing system; and From the first computing system, the application snapshot is provided to the second computing system.
2. The method according to claim 1, characterized in that The request includes information indicating an execution state of the requested application, and providing the application snapshot is performed in response to the first computing system determining that the requested execution state matches the execution state.
3. The method according to claim 1, characterized in that The execution state is a first execution state, the application snapshot is a first application snapshot, and the object state information is first object state information indicating a state of each application object among the plurality of application objects in the first execution state; The method further comprises: executing, at the first computing system, the bytecode into a second execution state; At the first computing system, a second application snapshot is generated, where the second application snapshot includes: The bytecode or information from which the bytecode can be generated; and The object information indicating the plurality of application objects, and second object state information for each of the plurality of application objects, the second object state information indicating a state of each of the plurality of application objects in the second execution state; and The second application snapshot is provided from the first computing system to the second computing system.
4. The method of claim 3, further comprising: Receiving information indicative of the second execution state from the second computing system, executing the bytecode into the second execution state and generating the second application snapshot are performed in response to receiving the information indicative of the second execution state.
5. The method according to claim 3, characterized in that Executing the bytecode is performed in a runtime configured according to one or more runtime configuration settings, and the application snapshot further includes information indicating at least one of the one or more runtime configuration settings.
6. The method according to claim 5, characterized in that The runtime is a first runtime, the one or more runtime configuration settings are one or more first runtime configuration settings, the application snapshot is a first application snapshot including first object state information indicating states of the plurality of application objects, the states of the plurality of application objects being states in response to executing the bytecode into the execution state at the first runtime, the method further comprising: executing, at the first computing system, the bytecode in a second runtime configured according to one or more second runtime configuration settings; At the first computing system, a second application snapshot is generated, where the second application snapshot includes: The bytecode or information from which the bytecode can be generated; and the object information indicating the plurality of application objects, and second object state information for each of the plurality of application objects, the second object state information indicating a state of each of the plurality of application objects in response to executing the bytecode into the second execution state at the second runtime; and The second application snapshot is provided from the first computing system to the second computing system.
7. The method according to claim 6, characterized in that The request includes information indicating one or more requested runtime configuration settings, and providing the first application snapshot is performed in response to the first computing system determining that the one or more requested runtime configuration settings match the one or more first runtime configuration settings.
8. The method of claim 6, further comprising: Receiving information indicative of the one or more second runtime configuration settings from the second computing system, executing the bytecode at the second runtime and generating the second application snapshot is performed in response to receiving the information indicative of the one or more second runtime configuration settings.
9. The method according to any one of claims 5 to 8, characterized in that The one or more runtime configuration settings include memory configuration settings.
10. The method according to any one of claims 5 to 8, characterized in that The one or more runtime configuration settings include heap garbage collection settings.
11. The method according to any one of claims 5 to 8, characterized in that The one or more runtime configuration settings include a function inlining setting.
12. The method according to any one of claims 5 to 8, characterized in that The one or more runtime configuration settings include a multi-tier compiler tiering setting.
13. The method of any one of claims 1 to 8, further comprising: A portion of source code for the application is provided from the first computing system to the second computing system.
14. A method comprising: At a first computing system, receiving an application snapshot from a second computing system, the application snapshot comprising: bytecode of the application or information from which the bytecode can be generated; and object information indicating a plurality of application objects, and object state information for each of the plurality of application objects, the object state information indicating a state of each of the plurality of application objects under an execution state of the application; at the first computing system, deserializing the bytecode into a managed heap for execution by the first computing system; Initializing, at the first computing system, the managed heap with the plurality of application objects, each of the plurality of application objects being placed in a state indicated by object state information of the each of the plurality of application objects; and At the first computing system, the application is executed from the execution state.
15. The method according to claim 14, characterized in that Receiving the application snapshot includes receiving the application snapshot from a memory or storage device local to the first computing system.
16. The method according to claim 14, characterized in that The application snapshot is received from a second computing system.
17. The method of claim 16, further comprising: A request for the application is sent from the first computing system to the second computing system.
18. The method according to claim 17, characterized in that The request includes information indicative of the execution state of the application.
19. The method of claim 14, wherein: The application snapshot further includes one or more runtime configuration settings, and the method further includes configuring a runtime in which the application is to be executed based on the one or more runtime configuration settings.
20. The method of any one of claims 14-19, further comprising: The application snapshot is saved to a local memory or storage device of the first computing system.
21. A computing system comprising: one or more processor units; as well as One or more computer-readable storage media storing computer-executable instructions, wherein when the instructions are executed, the one or more processor units execute the method of any one of claims 1-8 or claims 14-19.
22. One or more computer-readable storage media storing computer-executable instructions that, when executed, cause a first computing system to perform the method of any one of claims 1-8 or claims 14-19.
