Method and apparatus for verifying data types to be used for instructions and casting data types if needed
    41.
    发明授权
    Method and apparatus for verifying data types to be used for instructions and casting data types if needed 有权
    用于验证要用于指示的数据类型的方法和装置,如果需要,则转换数据类型

    公开(公告)号:US07269718B2

    公开(公告)日:2007-09-11

    申请号:US10835484

    申请日:2004-04-29

    IPC分类号: G06F9/44

    摘要: A method, apparatus, and computer instructions in a processor for performing arithmetic operations. A data type associated with a particular memory location is used to determine if an operation about to be performed on the data in that location is legal. If the operation requires the data to have a required data type, a determination is made as to whether the operation is a legal operation based on the identified data type and the required data type. If the operation is not legal on the identified type, a determination is made as to whether data can be cast to change the identified data type to the required data type. The data is cast to the required data type if the data can be cast to form modified data, and the arithmetic operation is performed on the modified data. If the data cannot be cast to the Required type, an exception or interrupt is generated.

    摘要翻译: 一种用于执行算术运算的处理器中的方法,装置和计算机指令。 与特定存储器位置相关联的数据类型用于确定是否对该位置的数据执行操作是合法的。 如果操作需要数据具有所需的数据类型,则基于所识别的数据类型和所需的数据类型确定操作是否是合法操作。 如果操作在所识别的类型上不合法,则确定是否可以投射数据以将所识别的数据类型改变为所需数据类型。 如果可以将数据转换为形式的修改数据,则将数据转换为所需的数据类型,并对修改的数据执行算术运算。 如果数据不能转换为必需类型,则会生成异常或中断。

    Method and system for memory leak detection in an object-oriented environment during real-time trace processing
    43.
    发明授权
    Method and system for memory leak detection in an object-oriented environment during real-time trace processing 失效
    在实时跟踪处理中面向对象环境中的内存泄漏检测方法和系统

    公开(公告)号:US06560773B1

    公开(公告)日:2003-05-06

    申请号:US09414331

    申请日:1999-10-07

    IPC分类号: G06F1730

    摘要: A method and system for detecting memory leaks in an object-oriented environment during real-time trace processing is provided. During the profiling of a program executing in a data processing system, a profiler processes events caused by the execution of the program, and the profiler maintains a profile data structure containing execution-related metrics for the program. The execution-related metrics may include object allocation and deallocation metrics that are associated with object processing initiated on behalf of an executing method. An object allocator allocates objects during the execution of the program and modifies object allocation metrics in the profile data structure. An object deallocator, such as a garbage collector, deallocates objects during the execution of the program and modifies object deallocation metrics in the profile data structure. The object allocation metrics and the object deallocation metrics may be compared to identify memory leaks.

    摘要翻译: 提供了一种用于在实时跟踪处理期间检测面向对象环境中的内存泄漏的方法和系统。 在对在数据处理系统中执行的程序进行分析时,分析器处理由程序执行引起的事件,并且分析器维护包含程序的执行相关度量的简档数据结构。 执行相关度量可以包括与代表执行方法发起的对象处理相关联的对象分配和重新分配度量。 对象分配器在执行程序期间分配对象,并在配置文件数据结构中修改对象分配度量。 诸如垃圾收集器的对象分配器在执行程序期间释放对象,并修改配置文件数据结构中的对象分配度量。 可以比较对象分配度量和对象分配度量以识别内存泄漏。

    Method and system for merging event-based data and sampled data into postprocessed trace output
    45.
    发明授权
    Method and system for merging event-based data and sampled data into postprocessed trace output 失效
    将基于事件的数据和采样数据合并到后处理跟踪输出中的方法和系统

    公开(公告)号:US06513155B1

    公开(公告)日:2003-01-28

    申请号:US09343438

    申请日:1999-06-30

    IPC分类号: G06F1730

    摘要: A process and system for profiling code executing on a data processing system is provided. Event-based trace data is recorded in response to selected events, and the event-based trace data includes an indication which code is being interrupted. The trace data may be processed to identify a thread or method that was executing during the event. A periodically occurring event is also detected, and a call stack associated with the profiled code is identified in response to detection of the periodically occurring event, such as a timer interrupt. The call stack is examined to identify each routine that is currently executing during the periodically occurring event, and the trace data is recorded with the call stack information. The trace data from the recorded events and the trace data from the call stacks are processed to generate a tree structure in which the nodes indicate the call structure of the routine information from both the trace events and the call stacks.

    摘要翻译: 提供了用于在数据处理系统上执行代码分析的过程和系统。 响应于所选择的事件记录基于事件的跟踪数据,并且基于事件的跟踪数据包括哪个代码被中断的指示。 可以处理跟踪数据以识别在事件期间正在执行的线程或方法。 还检测到周期性发生的事件,并且响应于诸如定时器中断的周期性发生的事件的检测来识别与分析代码相关联的调用堆栈。 检查呼叫堆栈以识别在周期性发生的事件期间当前正在执行的每个例程,并且利用呼叫堆栈信息记录跟踪数据。 来自记录的事件的跟踪数据和来自调用堆栈的跟踪数据被处理以生成树结构,其中节点从跟踪事件和调用堆栈指示例程信息的调用结构。