Foreign Memory Session Tracking for Descendant-Safe Resource Release

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In computer systems, managing off-heap memory resources is challenging because garbage collectors do not manage them, leading to unpredictable system behavior such as data corruption and crashes when these resources are deallocated while still in use.

Innovation Solution

A runtime environment manages temporal dependencies by allocating foreign resources to a memory session and preventing its closure as long as there are open descendant sessions, ensuring that descendants do not access deallocated resources.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Extent of automation

If the garbage collector manages heap memory, then memory management is automated and safe, but foreign resources (off-heap memory) cannot be managed by the garbage collector

Engineering Contradiction:
Improvegarbage collection automationVSAvoidsystem stability
Core Design Contradiction:
Extent of automationVSReliability

Solution Approach 1:

The patent introduces a memory session as an intermediary structure between the garbage collector and foreign resources. The memory session tracks usage of foreign resources and manages their lifecycles, acting as a mediator that allows the garbage collector to operate on heap memory while ensuring proper management of off-heap resources through the session's reference counting mechanism

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent segments memory management into two distinct domains: heap memory managed by the garbage collector and off-heap memory managed through memory sessions. This segmentation allows each mechanism to operate independently in its appropriate domain while maintaining overall system consistency through the session's tracking of foreign resource usage

Inventive Principle:
Principle #1Segmentation

2Quantity of substance

If foreign resources are deallocated to free memory, then memory efficiency improves, but system stability deteriorates due to potential data corruption and crashes

Engineering Contradiction:
Improveavailable memoryVSAvoidsystem stability
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The memory session implements a feedback mechanism through reference counting that continuously monitors how many active sessions are using foreign resources. This feedback loop prevents deallocation of foreign resources when they are still in use by tracking usage state and controlling memory release accordingly

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent applies preliminary action by establishing memory sessions and tracking foreign resource usage before deallocation occurs. The reference count is maintained in advance to ensure that when memory needs to be freed, the system already knows whether the resources are safe to deallocate or if active sessions still depend on them

Inventive Principle:
Principle #10Preliminary action

3Reliability

If memory sessions track all foreign resource usage, then resource management reliability improves, but device complexity increases

Engineering Contradiction:
Improveresource management reliabilityVSAvoidmemory session tracking complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent uses a simplified reference count mechanism that copies the essence of usage tracking without implementing full auditing. Instead of tracking every access and operation detail, the system maintains a simplified counter that increments when sessions acquire foreign resources and decrements when they release them, providing sufficient reliability with minimal complexity

Inventive Principle:
Principle #26Copying

Data Source

PatentUS12379963B2Managing temporal dependencies between sets of foreign resources
Publication Date: 2025.08.05 ORACLE INT CORP
  • US12379963B2 patent drawing
  • US12379963B2 patent drawing
  • US12379963B2 patent drawing

AI summary

Techniques for managing temporal dependencies between sets of foreign resources are disclosed, including: allocating, in a runtime environment, a segment of foreign memory to a first memory session, the runtime environment being configured to use a garbage collector to manage memory in a heap, and the foreign memory including off-heap memory that is not managed by the garbage collector; opening, in the runtime environment, a second memory session that descends from the first memory session; while the second memory session is open, encountering a request to close the first memory session; responsive to encountering the request to close the first memory session, determining that the first memory session has at least one open descendant memory session; responsive to determining that the first memory session has at least one open descendant memory session, declining the request to close the first memory session.